Hi.
Is there a tool or even just part of gcc that will tell me the static allocation of a given application?
Thanks
jim
Hi.
Is there a tool or even just part of gcc that will tell me the static allocation of a given application?
Thanks
jim
This could be achieved by running your program through Valgrind.
I didnt think Valgrind handled static memory?
Hrmm, if that's the case you could modify each static allocation to dynamic...that might be a lot of work. Yeah I guess all of your static allocation are allocated on the stack...(doh).
Im developing for an embedded platform so static allocation is essential. I thought static memory was all on the heap?
so i guess i just want to know how much of my heap i am using.
thanks
jim
size a.out
Tells you the size of the .text, .data and .bss segments.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.