Andes Workshop

It is currently Tue Sep 26, 2017 6:22 pm

All times are UTC + 8 hours [ DST ]




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: How to align functions?
PostPosted: Thu Oct 01, 2015 3:10 pm 
Offline

Joined: Wed Apr 13, 2011 7:44 pm
Posts: 23
Use GCC compiler option "-falign-functions=n":
Align the start of functions to the next power-of-two greater than n.

"-fno-align-functions" and "-falign-functions=1" are equivalent and mean that functions will not be aligned.

"-O2" and "-O3" optimization will turn on this flag.
"-Os" optimization will disable it.

Andes GCC compiler provide option "-malign-functions" to align all functions to the next 4-bytes boundary.

Note:
Functions in library may not be aligned to 4-bytes boundary.


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 1 guest


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:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group