Codewarrior: intsize 2 and compact_abi for stdlib and stdio

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

Codewarrior: intsize 2 and compact_abi for stdlib and stdio

跳至解决方案
722 次查看
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 解答
577 次查看
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 回复数
578 次查看
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

577 次查看
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 项奖励