Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 381 Bytes

File metadata and controls

26 lines (19 loc) · 381 Bytes

#Using GCC to Compile and Run C Programs

To see all gcc features:

gcc --help

To compile with gcc:

gcc file_name.c -o executable_name`

To run the program (in Mac):

./executable_name

To do both in the same step:

gcc file_name.c -o executable_name && ./executable_name

GCC Documentation