Code size limitation when using GCC

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

Code size limitation when using GCC

跳至解决方案
1,650 次查看
markoseverin
Contributor II

Hi guys,

I've tested the CodeWarrior MCU 10.4 special edition and I've noticed a strange thing regarding the code size limitation. I've created a project for the K70 and when using the freescale build tools, the code size is indeed limited to 32kByte. However, If i use the GCC option, there doesn't seem to be any limitation; 1Mbyte size compiled completley OK. I did test this with a fairly simple program, just a huge constant array of uint32_t.

 

Can anyone confirm this? Is there really no limitation when using the GCC compiler?

Thanks and best regards,

Marko

标签 (1)
0 项奖励
回复
1 解答
1,222 次查看
BlackNight
NXP Employee
NXP Employee

Hi Marko,

yes, the gcc compiler/assembler/linker are not limited at all. But you should see a limit if you try to debug it it: 64 KByte for Kinetis-L, and 128 KByte for Kinetis-K. I have not hit that limit yet. And if so, I can anyway program/download the program without any limitation if it is a S19, Intel-Hex or binary file.

在原帖中查看解决方案

0 项奖励
回复
1 回复
1,223 次查看
BlackNight
NXP Employee
NXP Employee

Hi Marko,

yes, the gcc compiler/assembler/linker are not limited at all. But you should see a limit if you try to debug it it: 64 KByte for Kinetis-L, and 128 KByte for Kinetis-K. I have not hit that limit yet. And if so, I can anyway program/download the program without any limitation if it is a S19, Intel-Hex or binary file.

0 项奖励
回复