Linker does not compress gaps between VLE functions like Reference Manual say

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Linker does not compress gaps between VLE functions like Reference Manual say

Jump to solution
267 Views
AndyMax
Contributor III


The "CodeWarrior Development Studio for 
Power Architecture® Processors Build Tools Reference " says:

-func_align
 
     Specifies alignment of functions in executable code.
 
      Syntax
     -func_align 4 | 8 | 16 | 32 | 64 | 128
 
      Remarks
             The default alignment is 4. However, at an optimization level 4, the alignment changes to 16. If you are using -func_align 4 (or none) and if you are compiling for VLE, then the linker will compress gaps between VLE functions:
 • if those functions are not called by a Classic PPC function
 • the function has an alignment greater than 4.

       NOTE    Compression of the gaps will only happen on files compiled by the CodeWarrior compiler.

------------------------

Questions: 

1. Isn't there a contradiction here or how should this be understood?

"If you are using -func_align 4 (or none) and if you are compiling for VLE, then the linker will compress gaps between VLE functions:"
 
" • the function has an alignment greater than 4."


2. What is "Classic PPC function" ?

3. Why I still have gaps "00 00" between functions: I compile VLE code and "Function alignment"(Code Generation->EPPC Processor) in Codewarrior project settings is set to "4 Byte" (check attachments)?

 

 

0 Kudos
Reply
1 Solution
177 Views
AndyMax
Contributor III

FORCEFILES { "module.o" }


For some reason it gives the linker the right to forget about his promises. If you have same issue just remove your module name from it.

View solution in original post

0 Kudos
Reply
3 Replies
178 Views
AndyMax
Contributor III

FORCEFILES { "module.o" }


For some reason it gives the linker the right to forget about his promises. If you have same issue just remove your module name from it.

0 Kudos
Reply
239 Views
AndyMax
Contributor III

UPD1: I created blank project and fill it with example functions, and this project no generate gaps between functions. I'm keeping play with this

0 Kudos
Reply
259 Views
AndyMax
Contributor III

... attachments ...

0 Kudos
Reply