CW10.1 code size info

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

CW10.1 code size info

跳至解决方案
1,662 次查看
Florijan
Contributor III

Hi,

 

I am new to CW10.1. Where can I get the info about the code size of my program and/or sub programs?

 

Best regards,

Florijan

标签 (1)
0 项奖励
回复
1 解答
1,096 次查看
CrasyCat
Specialist III

Hello

 

I would recommend you to take a look at the map file generated after linking.

 

If you are building code for Coldfire V1, look at the file with extension .xMAP generated in your build directory. 

You can see a section "# Memory map" in there which shows start address and size of each section inside of your application.

 

If you are building code for HCS08, look at the file with extension .map in your build directory

There is a section "SECTION-ALLOCATION SECTION", where you can see the size of each section defined inside of the application.

At the end of this section you can see a summary of the amount of memory used for code and constants (READ_ONLY), or data and stack (READ_WRITE).

 

The .map file generated by HCS08 linker also provide information of total amount of code, constant  and data in a section called "MODULE STATISTIC".

 

CrasyCat

在原帖中查看解决方案

0 项奖励
回复
4 回复数
1,096 次查看
Florijan
Contributor III

i am using Coldfire V1 and i will be using also s08 mcus.

 

best regards,

florijan

0 项奖励
回复
1,097 次查看
CrasyCat
Specialist III

Hello

 

I would recommend you to take a look at the map file generated after linking.

 

If you are building code for Coldfire V1, look at the file with extension .xMAP generated in your build directory. 

You can see a section "# Memory map" in there which shows start address and size of each section inside of your application.

 

If you are building code for HCS08, look at the file with extension .map in your build directory

There is a section "SECTION-ALLOCATION SECTION", where you can see the size of each section defined inside of the application.

At the end of this section you can see a summary of the amount of memory used for code and constants (READ_ONLY), or data and stack (READ_WRITE).

 

The .map file generated by HCS08 linker also provide information of total amount of code, constant  and data in a section called "MODULE STATISTIC".

 

CrasyCat

0 项奖励
回复
1,096 次查看
Florijan
Contributor III

Hi,

 

Thank you CrasyCat. Now i can see all the info about the code size.

 

Best regards,

Florijan

0 项奖励
回复
1,096 次查看
CrasyCat
Specialist III

Hello

 

Which MCU are you targeting (HC08, Coldfire, ...)?

 

CrasyCat

0 项奖励
回复