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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

ソリューションへジャンプ
411件の閲覧回数
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 解決策
321件の閲覧回数
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 返答(返信)
322件の閲覧回数
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 件の賞賛
返信
383件の閲覧回数
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 件の賞賛
返信
403件の閲覧回数
AndyMax
Contributor III

... attachments ...

0 件の賞賛
返信