How can I know about my code size

Discussion about Parallella (and Epiphany) Software Development

Moderators: amylaar, jeremybennett, simoncook

How can I know about my code size

Postby jimmystone » Wed Oct 16, 2013 10:54 am

Hi, All

Since there is only 32KB memory for each core for both data and code.
How can I know the size of my code if I get the elf file and srec file.

Thanks.
jimmystone
 
Posts: 48
Joined: Tue Sep 24, 2013 12:09 pm

Re: How can I know about my code size

Postby simoncook » Wed Oct 16, 2013 11:11 am

Useful SDK Links: - - -
User avatar
simoncook
 
Posts: 50
Joined: Mon Dec 17, 2012 3:25 am
Location: United Kingdom

Re: How can I know about my code size

Postby ysapir » Wed Oct 16, 2013 12:02 pm

If you have the SREC file, then another, very rough method, for a loadable size estimate is to divide its size by 2. The SREC is an ASCII representation of the loadable objects, so each byte is represented by a pair of characters. As before, you may want to separate the external records from the internal records, based on the address field.
User avatar
ysapir
 
Posts: 393
Joined: Tue Dec 11, 2012 7:05 pm


Return to Programming Q & A

Who is online

Users browsing this forum: No registered users and 12 guests