Compiling and Executing C Programs on ECE Linux
Machines - Basic Instructions
If you haven't created your source code file:
- Type the command: emacs <source-file.c> &
- Enter your C source code
- To save your program: C-x C-s
- To quit emacs: C-x C-c
To compile and run your program prog.c:
- % c99 -o prog
prog.c
- % ./prog