This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Testing an application build with H8300 cross compiler


Mohammad,

>>Further I have another question.  I have hitachi board with ram 32k
>>and when I build my application with a small os-kernel, the
>>resulting srec file became around 33k.  Now my question is, is the
>>size of srec file(33k) is the true size or does it contain extra
>>symbols which are not loaded to the target and actual size may be
>>less than 33k.  If the above is true i.e. srec file contatin extra
>>symbols then how can I find the actual size of a srec file.  any
>>help in this regard

In order to find out how much memory that an application consumes,
one can look at the map file generated for the application.
The map file will give the memory size that is allocated to each 
section (.txt, .bss, .data etc ). When the amount of the sections
represented in map file, we could get the size of an application.

The gnu linker has switches that will generate the map file.

Hope this might help.

with rgds,
mahadev


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]