public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* options for later passes
@ 2011-02-21 20:58 kevin diggs
  2011-02-21 23:37 ` Andi Hellmund
  0 siblings, 1 reply; 4+ messages in thread
From: kevin diggs @ 2011-02-21 20:58 UTC (permalink / raw)
  To: gcc-help

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'?

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-02-22 14:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-21 20:58 options for later passes kevin diggs
2011-02-21 23:37 ` Andi Hellmund
2011-02-22  0:34   ` kevin diggs
2011-02-22 15:47     ` Andi Hellmund

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).