Andes Workshop

It is currently Thu Jan 21, 2021 12:36 am

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