public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* help: unreasonable assembly code after put gcc compiler optimization option "-O2" or "-O1"
@ 2002-11-22 11:15 Mark Yang
  0 siblings, 0 replies; only message in thread
From: Mark Yang @ 2002-11-22 11:15 UTC (permalink / raw)
  To: gcc-help

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=us-ascii, Size: 962 bytes --]

Hi:
  I am using gcc-2.95.3 for my arm processor, and I
need to optimize my code by putting "-O2" or "-O1"
optimization option for compiling, since my code
crashes after adding "-O2" options, I was trying to
manually adding all the opitimization options I could
find in gcc man page to replace "-O2" then see which
one actually causes the crash.
  The weird thing is even I put all the options, it
still generately not efficent assembly code,( not like
"-O2", it generates beautiful assembly code but it
crashes somewhere else).
  So here is the question, I wanna generate as
efficient code as "-O2"  generate for me by manually
adding those optimizaton options, but anyone knows how
I could do it? I think  maybe there are some other
options not listed on the gcc man page.
Any suggestion is appreciated!!!
Mark


__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus – Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-11-22 19:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-11-22 11:15 help: unreasonable assembly code after put gcc compiler optimization option "-O2" or "-O1" Mark Yang

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