2008-09-07 22:26:42     Can I build the kernel with -O3?

Document created by Aaronwu Employee on Aug 7, 2013
Version 1Show Document
  • View in full screen mode

2008-09-07 22:26:42     Can I build the kernel with -O3?

david wang (CHINA)

Message: 61765   

 

Hi, all

 

  I have noticed that the compile option in the kernel Makefile is O2 if not define CONFIG_CC_OPTIMIZE_FOR_SIZE. I tried modified this option to O3, but failed when I load the image in uboot. Does the O3 work with the kernel? Is there anyone have tried this?  Thanks!

 

 

QuoteReplyEditDelete

 

 

2008-09-07 22:35:56     Re: Can I build the kernel with -O3?

Mike Frysinger (UNITED STATES)

Message: 61766   

 

there isnt any real reason why it wouldnt work.  -O2 is the default because it tends to be the best speed/size compromise and it tends to avoid bugs in code generation which sometimes occurs with -O3.

Attachments

    Outcomes