CW10.1 code size info

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

CW10.1 code size info

Jump to solution
1,122 Views
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

Labels (1)
0 Kudos
Reply
1 Solution
556 Views
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

View solution in original post

0 Kudos
Reply
4 Replies
556 Views
Florijan
Contributor III

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

 

best regards,

florijan

0 Kudos
Reply
557 Views
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 Kudos
Reply
556 Views
Florijan
Contributor III

Hi,

 

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

 

Best regards,

Florijan

0 Kudos
Reply
556 Views
CrasyCat
Specialist III

Hello

 

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

 

CrasyCat

0 Kudos
Reply