Andes Workshop http://forum.andestech.com/ |
|
請問compiler最佳化level -Os and -O1的差別? http://forum.andestech.com/viewtopic.php?f=16&t=137 |
Page 1 of 1 |
Author: | cindy [ Wed Aug 24, 2011 10:42 am ] |
Post subject: | 請問compiler最佳化level -Os and -O1的差別? |
Andes的compiler是從gcc 4.4.4 porting過來,請參考以下對各個optimization的說明。 http://gcc.gnu.org/onlinedocs/gcc-4.4.6 ... ze-Options 如果變數在optimization之後消失,可以加上volatile這個關鍵字避免變數被最佳化。 |
Page 1 of 1 | All times are UTC + 8 hours [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |