I would like to know how to generate assembler code from a C program using Unix.
I tried the gcc: gcc -c file.c
I also used firstly cpp
and then try as
but I m getting errors.
I m trying to build an assembler program from 3 different programs
prog1.c prog2.c prog.h
Is it correct to do gcc -S prog1.c prog2.c prog.h
?
Seems that is not correct. I don t know if I have to generate the assembler from each of them and then link them
Thanks