options for later passes
kevin diggs
diggskevin38@gmail.com
Mon Feb 21 20:58:00 GMT 2011
Hi,
Is there an easy way to figure out which options need to be passed to
later compilation passes? If I do a:
gcc -S -dA -fverbose-asm -mcpu=750 -O2 -mmultiple -fpic gcc1test.c
What should be used for assembly:
gcc -c ??? gcc1test.s
and linking:
gcc -ogcc1test gcc1test.s
I am pretty sure the link will need the -fpic. Probably also something
like -pthread? Maybe the assembler would need to allow something like
altivec? So as a general rule should it see the cpu (or arch) option?
Does anyone else need the -O2?
kevin
P.S.: Do the order of the optimization options matter: '-O2 -mcpu=750
-mmultiple' the same as '-mmultiple -mcpu=750 -O2'?
More information about the Gcc-help
mailing list