Compilers (cont)
Compilation/linking with gcc
gcc -c Stack.c
produces Stack.o, from Stack.c and Stack.h
gcc -c bracket.c
produces bracket.o, from bracket.c and Stack.h
gcc -o rbt bracket.o Stack.o
links bracket.o, Stack.o and libraries
producing executable program called rbt
|
Note that stdio,assert included implicitly.
gcc is a multi-purpose tool
- compiles (
-c ), links, makes executables (-o )
|