|
> legOS 0.2.3 or 0.2.4 will load .strings and .rodata sections just like the
> .text section. With this you can achive persistent data by storing your
> variables into the .strings section. There are some nice features in gcc
> to help with this.
Do you think that is possible to change the behavier of legOS loading to
obtain the expected behavier for static data without the trick?
Bye,
Paolo.
---
"Do not follow where the path my lead Go instead where there is no
path and leave a trail." - George Bernard Shaw
|
|
Message has 2 Replies: | | Re: Persistent globals
|
| (...) No. You can not easily see the difference between static and non static data in the linker scripts to decide into which section to put the data. I would recomment a header file "persistent.h" and some documentation about that. We could modify (...) (24 years ago, 25-Jul-00, to lugnet.robotics.rcx.legos)
| | | Re: Persistent globals
|
| (...) I just committed a header file persistent.h with comment on how to use __persistent in your files. I also updated genlds.c to move the persistent data to the right place. Eddie C. Dost ecd@skynet.be (24 years ago, 25-Jul-00, to lugnet.robotics.rcx.legos)
|
Message is in Reply To:
| | Re: Persistent globals
|
| (...) legOS 0.2.3 or 0.2.4 will load .strings and .rodata sections just like the .text section. With this you can achive persistent data by storing your variables into the .strings section. There are some nice features in gcc to help with this. Just (...) (24 years ago, 16-Jul-00, to lugnet.robotics.rcx.legos)
|
12 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
This Message and its Replies on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|