Codewarrior: intsize 2 and compact_abi for stdlib and stdio

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

Codewarrior: intsize 2 and compact_abi for stdlib and stdio

ソリューションへジャンプ
1,690件の閲覧回数
theodortempelme
Contributor I

Hi,

I am using Codewarrior 10.6 with MCF52259.

My settings are intsize 2 and compact_abi. (I know that I probably shouldn't do this, but I need it for didactic purposes.) It works.

The only problem is that stdlib and stdio obviously use intsize 4 and (sometimes?) register_abi.

Is there any way to have stdlib and stdio with my unusual settings?.

Greetings Theodor T.

ラベル(1)
0 件の賞賛
返信
1 解決策
1,545件の閲覧回数
stanish
NXP Employee
NXP Employee

Hello Theodor,

You probably need to rebuild all the standard/runtime (EWL) libs used in your project with compiler switch changed from -abi register to -abi compact.

There are several makefiles in "<CW MCU v10.x>\MCU\ColdFire_Support\ewl". You should adjust this compiler switch in the makefile that builds the libraries used by your project.

The instructions are documented in the compiler manual: "<CW MCU v10.x>\MCU\Help\PDF\MCU_ColdFire_Compiler.pdf", section "How to rebuild the EWL Libraries".

Hope it helps.

Stan

元の投稿で解決策を見る

2 返答(返信)
1,546件の閲覧回数
stanish
NXP Employee
NXP Employee

Hello Theodor,

You probably need to rebuild all the standard/runtime (EWL) libs used in your project with compiler switch changed from -abi register to -abi compact.

There are several makefiles in "<CW MCU v10.x>\MCU\ColdFire_Support\ewl". You should adjust this compiler switch in the makefile that builds the libraries used by your project.

The instructions are documented in the compiler manual: "<CW MCU v10.x>\MCU\Help\PDF\MCU_ColdFire_Compiler.pdf", section "How to rebuild the EWL Libraries".

Hope it helps.

Stan

1,545件の閲覧回数
theodortempelme
Contributor I

Hi Stan,

thanks a lot, sounds good! This should probably do it.

It will take some time before I will try (because I do not want to disturb the currently running semester).

I will give notice next year, how it worked.

Best regards

Theodor

0 件の賞賛
返信