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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

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

跳至解决方案
246 次查看
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 项奖励
回复
1 解答
156 次查看
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 项奖励
回复
3 回复数
157 次查看
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 项奖励
回复
218 次查看
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 项奖励
回复
238 次查看
AndyMax
Contributor III

... attachments ...

0 项奖励
回复