Skip to content

A small program I made to easily compile your C programs with GCC. It was written using C.

Notifications You must be signed in to change notification settings

Ritesh-Sivanathan/easy_gcc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Easy GCC

TODO: write tests

About

A small program I made to easily compile and run your C programs with GCC.

Currently, you can compile and execute your C programs in a bash terminal with one command. There are options for flags such as --sudo, which lets you run the command with elevated priviledges. You can include arguments when executing a function if the program you are running requires arguments to be passed to it.

Usage

run {flagsToEasyGCC} {fileName} {argumentsToProgram}

flagsToEasyGCC ==> These are the flags for the utility, not for the program you are trying to compile and execute.
argumentsToProgram ==> These are the space separated arguments and flags for the program you are trying to compile and execute.

Optional Flags

--sudo ==> allows you to compile and execute the program as superuser

Installation

Linux (Bash)

cd /usr/local/bin
sudo git clone https://github.com/Ritesh-Sivanathan/easy_gcc.git
cd easy_gcc_compile
sudo gcc run.c -o run
sudo echo "export PATH=\"$PATH:/usr/local/bin/easy_gcc/\"" >> ~/.bashrc

(haven't tried on Windows yet so will add later)


Please let me know if there are any issues or mistakes! Also, if you have the time, please provide feedback or guidance as I would really appreciate it!

About

A small program I made to easily compile your C programs with GCC. It was written using C.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages