|
> > 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?
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 the linker scripts to use a .persistent
section for that, to get rid of the .strings hack.
Eddie C. Dost
ecd@skynet.be
|
|
Message is in Reply To:
| | Re: Persistent globals
|
| (...) 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 (...) (24 years ago, 24-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
|
|
|
|