www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/09/27/21:23:49

From: csantill AT lausd DOT k12 DOT ca DOT us
Message-ID: <342DB150.8C494F01@lausd.k12.ca.us>
Date: Sat, 27 Sep 1997 18:22:24 -0700
MIME-Version: 1.0
To: ckern AT junkmailnetnitco DOT net, djgpp AT delorie DOT com
Subject: RE: newbie

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019