public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* optimization issue about -O2 and -Os
@ 2004-04-29 10:33 Ebony Zhu
  2004-04-30  0:37 ` Jim Wilson
  0 siblings, 1 reply; 14+ messages in thread
From: Ebony Zhu @ 2004-04-29 10:33 UTC (permalink / raw)
  To: gcc_mailing_list; +Cc: Zhu Ebony-r57400

Hi, Everybody,

I'm new to this mailing list. I encountered an odd issue about gcc
optimization. I'm using a cross-built gcc 3.3.2 for Powerpc. When I
build some applications such as U-Boot, Busybox..., with the -Os
optimization, the apps can be built but cannot run (just halted, there
were even no error messages). If I use -O2 switch then everything is OK.

According to manpage of GCC, -Os is based on -O2 switch and does some
work to reduce the code size. What GCC did on earth with the -Os switch?

Anybody has some idea about this odd issue? Many thanks!

B.R.
EBony





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

end of thread, other threads:[~2004-04-30 18:45 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-04-29 10:33 optimization issue about -O2 and -Os Ebony Zhu
2004-04-30  0:37 ` Jim Wilson
2004-04-30  6:39   ` Ebony Zhu
2004-04-30  9:20     ` Jim Wilson
2004-04-30 13:23       ` Ebony Zhu
2004-04-30 16:06       ` Dave Korn
2004-04-30 16:42         ` Zack Weinberg
2004-04-30 18:09           ` Dave Korn
2004-04-30 19:12             ` Zack Weinberg
2004-04-30 19:45               ` Dave Korn
2004-04-30 20:05                 ` Phil Edwards
2004-04-30 20:09                   ` David Edelsohn
2004-04-30 21:02                   ` llewelly
2004-04-30 18:29       ` Dale Johannesen

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).