GNU Linker (MicroBlaze) / debugging problem

Aug 01, 2005 1 Replies

Is there anyone that knows some "rule of tumb" when creating a linkerscript? the elffile gives me a good idea on how big the program will be, but the sizes on the stack- and the heep is only a wild guess for me.



I have sometimes a hard time debugging the MicroBlaze because the debugger is somethimes running out of scope, but that happends somethimes with very big stacks- and heaps too. Is it yust something I have to live with or might there be something else that I have overlooked?



Raymond



Working out required stack size isn't easy. One way is to build a call tree (ftp://ftp.berlios.de/pub/calltree/), and then print out the stack pointer in the leaf functions.

Cheers, Jon

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required