Computer Science & C Programming


Compilation

  1. A C program is translated into machine code by the way of a compiler, e.g. gcc or TinyC
# Compilation
gcc program.c -o program.exe

# Execution
./program.exe

# View assembly
objdump -d program.exe
  1. Editor and Compiler can be found into IDE (Integrated Development Environment) such as CodeBlock (see also online interpreter or this one)
  2. As a complement, programs can be represented by using the Code2flow tool.

15 - 15