Safe Compile is a program designed to enhance the safety of compiling your C code by integrating essential safety flags such as -Wall, -Werror, -Wextra, -pedantic, and -std=gnu89.
You have two options to get started:
- Clone the repository: Use the following command in your terminal:
git clone https:/github.com/OluchukwuJoseph/safe-compile.git`- Fork the Repository: Navigate to the repository's page and fork it to your own GitHub account.
Once you've cloned or forked the repository, navigate to the directory and execute the following command in your terminal:
./install_safe_compileThere are two primary ways to use Safe-Compile:
- With the
-oFlag:
compile main.c [other files] -o mainThis command compiles the specified files, including main.c and any additional files provided, into an executable named main.
- Without the
-oFlag:
compile main.c [other files]When running safe-compile without the -o flag, the output file will be named after the first file that was passed. In this case, it will generate an executable named main.
Additional Notes:
- Ensure the necessary files are listed in the correct order for compilation.
- If no output file is explicitly specified with the
-oflag, the resulting executable will adopt the name of the first file passed in the command.
- Fork the repository and clone it locally.
- Create a new branch for your contributions.
- Make your changes and ensure they work as expected.
- Test your changes thoroughly.
- Commit your changes and provide meaningful commit messages.
- Push your changes to your fork.
- Submit a pull request to the
mainbranch of the original repository.
If you encounter any issues with the code or have suggestions for improvements, please open an issue on the repository. We appreciate detailed descriptions, steps to reproduce, and any additional context that might help us address the problem.
Safe Compile is licensed under the MIT License.