Mail Archives: djgpp/1997/09/27/21:23:49
from: csantill AT lausd DOT k12 DOT ca DOT us
I hope "main(void)" was a typo because everyone on the list will tell
you it should be "int main(void)"
Anyways, try compiling like this "gcc -s -c foo.c -o foo.o"
The "-s" will remove the symbol information but watch out not to put
"gcc -S -c foo.c -o foo.o" because that will give you an AT&T asm file
called "foo.o" which is what gcc does to your code before it is finally
compile the asm code to machine code then linked. It might be useful if
want to fully optimize before send it to the compiler though.
- Raw text -