Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

Re: How to setup Stacks in GNU

2004-12-28 by ggindele

The UT040803A.zip in the File section has a wonderful example for
startup with GCC.

--- In lpc2000@yahoogroups.com, "sig5534" <sig5534@h...> wrote:
> 
> Karl, much thanks for your detailed info.
> 
> > Your startup code should also have code to copy the initialization 
> > values for .data from flash to RAM.
> 
> Ok, how do I do that for GCC?  Got any examples?  Can you point me 
> towards the doc?
> 
> > If you write all the code of your program yourself, you may of 
> course 
> > skip the startup initialization so that all globals/statics are 
> > indeterminate at startup.  But if you link in other code, such as 
> > standard C library functions, you better be absolutely sure that 
> the 
> > indetermination of their statics/globals won't break anything.
> 
> Does GCC spit out its own C init code?  If so where is the doc on 
> this or the examples so I can see how to link this in?
>  
> > If you are concerned with the speed of the startup initialization,
> 
> No I'm not.  I just want something that works!  All of the examples I 
> find involve somebody else's syntax like IAR or ARM which will not 
> work for GCC.  I'm trying to figure out what I need for GCC to work!
> 
> There is so much doc to wade through for this GNU stuff, and so few 
> examples, this is a slow painful learning curve.  Some decent 
> examples would be a big help.  I expected that there would be some 
> with the GNUARM files, but I sure cannot find many.
> 
> More info from an expert like yourself would be greatly appreciated!
> 
> Thanks,  Chris.

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.