2010-02-24 14:54:18     Memory occupation in terms of Byte

Document created by Aaronwu Employee on Aug 20, 2013
Version 1Show Document
  • View in full screen mode

2010-02-24 14:54:18     Memory occupation in terms of Byte

cristiana tenti (UNITED STATES)

Message: 86485   

 

Hello everybody,

 

it is a quite simple question:

 

do you know how can I become aware of the number of Bytes my code (running on BFIN 526 with uclinux) use either for data and code?

 

 

 

Thank you so much!

 

 

 

best regards,

 

 

 

Cristiana

TranslateQuoteReplyEditDelete

 

 

2010-02-25 04:23:13     Re: Memory occupation in terms of Byte

Robin Getz (UNITED STATES)

Message: 86524   

 

Cristiana:

 

Either - look on the host (with readelf), or look on the target ( cat /procs/pid/maps).

 

-Robin

QuoteReplyEditDelete

 

 

2010-02-25 12:40:34     Re: Memory occupation in terms of Byte

cristiana tenti (UNITED STATES)

Message: 86544   

 

Hi thanks for your reply!

 

 

 

If I'd like to look on the host, what does it mean readelf?

 

I used to compile with the following command :

 

bfin-linux-uclibc-gcc capture-bfin.c -o capture-bfin

bfin-linux-uclibc-strip capture-bfin

 

 

 

Where can I find readelf?

 

 

 

Thank you very much!

 

 

 

Cristiana

TranslateQuoteReplyEditDelete

 

 

2010-02-25 12:54:32     Re: Memory occupation in terms of Byte

Mike Frysinger (UNITED STATES)

Message: 86546   

 

readelf is a program that is part of the toolchain.  use it to view the program headers (-l) and section headers (-S).

QuoteReplyEditDelete

 

 

2010-02-25 12:59:15     Re: Memory occupation in terms of Byte

cristiana tenti (UNITED STATES)

Message: 86547   

 

Thanks!!

Attachments

    Outcomes