This Question is Possibly Answered

1 "correct" answer available (4 pts) 2 "helpful" answers available (2 pts)
347 Views 5 Replies Last post: Nov 19, 2009 12:34 AM by FrankL RSS
tuan jk Newbie 4 posts since
Oct 23, 2009
Currently Being Moderated

Nov 17, 2009 3:16 AM

Code size & data size

Hi all,

 

Can any one explain me how to canculate the code size & data size from the .map file generated by the HEW?

 

Many thanks

FrankL Apprentice 1,100 posts since
Mar 16, 2009
Currently Being Moderated
Nov 17, 2009 4:10 AM in response to: tuan jk
Re: Code size & data size

Doesn't your map file include a part like this:

 

*** Total Section Size ***

 

RAMDATA SECTION:  0000041d Byte(s)
ROMDATA SECTION:  0000004a Byte(s)
PROGRAM SECTION:  00000850 Byte(s)

 

Note, the numbers are hexadecimal.

meican wu Newbie 3 posts since
Nov 12, 2009
Currently Being Moderated
Nov 17, 2009 4:50 AM in response to: FrankL
Re: Code size & data size

Hi FrankL,

How to show above information about RAM&RAM size after buid and complier in E8 or E8a?

 

Thanks!

DJ Delorie Novice 301 posts since
Mar 12, 2009
Currently Being Moderated
Nov 18, 2009 11:07 PM in response to: tuan jk
Re: Code size & data size

The P* ones are program, D* is r/w data, B* is bss (uninitialized data), R* is read-only data, S is stack.

FrankL Apprentice 1,100 posts since
Mar 16, 2009
Currently Being Moderated
Nov 19, 2009 12:35 AM in response to: tuan jk
Re: Code size & data size

And the C sections are constant data.If you have a look at chapter 9.1.2 of the compiler user's manual you get a quite good explanation about section names and also how to change them.

And if you use the linker option -show=total_size you get the summary I showed before.

More Like This

  • Retrieving data ...

Bookmarked By (0)