C Stack Initialization

Corrin Meyer Corrin.Meyer at dornerworks.com
Wed Sep 3 18:27:45 UTC 2008


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.

 

Corrin J. Meyer 
DornerWorks, Ltd. 
Embedded Systems Engineering 
  
T: 616.389.8336 
F: 616.245.8372 
E: corrin.meyer at dornerworks.com <mailto:corrin.meyer at dornerworks.com>  
  
3445 Lake Eastbrook Blvd. SE 
Grand Rapids, MI 49546 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sourcerytools.com/pipermail/coldfire-gnu-discuss/attachments/20080903/9d9cce50/attachment.html>


More information about the coldfire-gnu-discuss mailing list