Yahoo Groups archive

Lpc2000

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

Message

Re: Global Variables

2005-09-25 by lehighuboy

http://www.keilsoftware.com/support/man/docs/ca/ca_ap_startupcode.htm

--- In lpc2000@yahoogroups.com, "Anton Erasmus" <antone@s...> wrote:
> On 25 Sep 2005 at 4:11, lehighuboy wrote:
> 
> > The following question involves an LPC2129 and Keil ARM IDE, AA 
and
> > CARM compiler.
> > 
> > Are global variables defined in the startup.s file? And, if that's
> > correct, then where should the code be placed? Finally, how would 
you
> > define a global float, unsigned int, char, and const char 
variables?
> > (please respond with examples)
> > 
> > Thank you for your help!
> > 
> Why would you want to define global variables in the startup.s 
file ?
> Define them as you would when writing normal C code. The only thing
> the startup.s file does, is to setup a suitable environment for the 
C
> application to run in, as defined in Standard C. 
> 
> Regards
>   Anton Erasmus
> -- 
> A J Erasmus

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.