How to do S12Z linker optimization none?

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

How to do S12Z linker optimization none?

857件の閲覧回数
pratibhasurabhi
Contributor V

Hi,

I am using  CodeWarrior V10.7.

We have tried the below setting for turning off the optimization but its not working

Please tell me the setting for the optimization.

pastedImage_1.png

Thanks!

0 件の賞賛
返信
3 返答(返信)

626件の閲覧回数
pratibhasurabhi
Contributor V

Dear Alice ,

We are trying to implement unit testing for our code .For the unit testing tool to run it create stub functions of all the functions .These stub functions are not referenced in the code .It just needs to be linked in the object file created .

For previous version of codewarrior shown in the screenshot below there was option to keep or remove the unused sections.

pastedImage_1.png

Can you please tell how to do in present s12z linker setting  .As the linker is removing the unused objects in the object file created .

The present linker optimisation setting is this

pastedImage_2.png

Thanks in advance

0 件の賞賛
返信

626件の閲覧回数
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Pratibha,

Maybe you can try to add the unused function to ENTRIES section in prm file :

ENTRIES

     function_name

END

Please refer to :

How to include unused rtshc12.c.o (ansixbi.lib) and rtsxgate.cxgate.o (ansi_xgi.lib) functions into ... 

and

"MCU_Build_Tools_Utilities.pdf"(under CW10.7 install folder:CW MCU v10.7\MCU\Help\PDF )  -> ENTRIES Block

BR

Alice

0 件の賞賛
返信

626件の閲覧回数
Alice_Yang
NXP TechSupport
NXP TechSupport

Hi ,

How do you know it doesn't  work ? Could you show some codes or something else to

tell us in detail.

BR

Alice

0 件の賞賛
返信