To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.legosOpen lugnet.robotics.rcx.legos in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / legOS / 1284
1283  |  1285
Subject: 
Re: Persistent globals
Newsgroups: 
lugnet.robotics.rcx.legos
Date: 
Tue, 25 Jul 2000 05:39:51 GMT
Viewed: 
1712 times
  
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
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR