This is the mail archive of the ecos-discuss@sourceware.cygnus.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[ECOS] stacks as globel char[]


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
----------------------------------------------------------------------


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]