This is the mail archive of the
ecos-discuss@sourceware.cygnus.com
mailing list for the eCos project.
[ECOS] stacks as globel char[]
- To: ecos-discuss@sourceware.cygnus.com
- Subject: [ECOS] stacks as globel char[]
- From: lunn@ma.tech.ascom.ch (Andrew Lunn)
- Date: Fri, 7 May 1999 09:02:17 +0200 (MET DST)
This question comes out of ignorance as to how the compiler/loader works.
In the example code you have the stacks as a global char
stack[x][y]. Is this a good idea for real applications? The same
applies to memory for memory pools etc.
Im thinking about code that is for a ROM, or downloading over a serial
line. If i looked at this code would i find lots of zeros which are
the stack and memory for the pool, or are these variables created
during run time startup?
Thanks
Andrew
----------------------------------------------------------------------
Dr Andrew Lunn Phone: +41 62 889 5297
ASCOM Systec AG Fax: +41 62 889 5290
Gewerberpark Email: Andrew.Lunn@ascom.ch
CH-5506 Magenwil
Switzerland
----------------------------------------------------------------------