Subject:
|
Re: legOS ... really a stack question
|
Newsgroups:
|
lugnet.robotics
|
Date:
|
Tue, 5 Jan 1999 10:09:06 GMT
|
Original-From:
|
Ben Laurie <BEN@ALGROUP.COspamless.UK>
|
Viewed:
|
1751 times
|
| |
| |
Kekoa Proudfoot wrote:
>
> Ben Laurie <lego-robotics@crynwr.com> wrote:
> > Changing globals to statics causes crashes.
>
> Strange that this is the case, since I'm pretty sure both are handled
> identically, except possibly for the ordering of such variables in memory.
> My guess is that some unrelated bug is causing your problems.
The point appears to be that statics end up somewhere completely
different from globals in the memory map - so I agree that it is
probably an unrelated bug that is revealed by changing the memory map.
As it happens, because of alignment, the switch to statics also makes
the image slightly larger. Whether this is relevant, I know not.
Cheers,
Ben.
--
http://www.apache-ssl.org/ben.html
"My grandfather once told me that there are two kinds of people: those
who work and those who take the credit. He told me to try to be in the
first group; there was less competition there."
- Indira Ghandi
--
Did you check the web site first?: http://www.crynwr.com/lego-robotics
|
|
Message is in Reply To:
| | Re: legOS ... really a stack question
|
| (...) Strange that this is the case, since I'm pretty sure both are handled identically, except possibly for the ordering of such variables in memory. My guess is that some unrelated bug is causing your problems. -Kekoa (26 years ago, 4-Jan-99, to lugnet.robotics)
|
10 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
Active threads in Robotics
|
|
|
|