[coldfire-gnu-discuss] C Stack Initialization
Nathan Sidwell
nathan at codesourcery.com
Thu Sep 4 10:44:39 UTC 2008
Corrin Meyer wrote:
> Is there an easy way using CS3 to have the stack initialized to a
> predefined bit pattern? By the time main is executed the stack area has
> already been used to some degree so starting at __cs3_stack would likely
> cause problems. I suppose I can try to determine the current stack
> pointer once I enter main() by grabbing it from the register or
> something similar but the stack should really be fully initialized prior
> to entering main.
What do you mean by initialize the stack? Do you want a memory contents on the
stack? Where exactly on the stack? What are you trying to do?
nathan
--
Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery
More information about the coldfire-gnu-discuss
mailing list