Andes Workshop

It is currently Fri Mar 29, 2024 2:03 am

All times are UTC + 8 hours [ DST ]




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: 請問compiler最佳化level -Os and -O1的差別?
PostPosted: Wed Aug 24, 2011 10:42 am 
Offline
User avatar

Joined: Fri Mar 04, 2011 9:36 pm
Posts: 500
Andes的compiler是從gcc 4.4.4 porting過來,請參考以下對各個optimization的說明。
http://gcc.gnu.org/onlinedocs/gcc-4.4.6 ... ze-Options

如果變數在optimization之後消失,可以加上volatile這個關鍵字避免變數被最佳化。


Top
 Profile Send private message E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 17 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group