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 / 698
697  |  699
Subject: 
Re: Trying to understand dynamic loading
Newsgroups: 
lugnet.robotics.rcx.legos
Date: 
Mon, 24 Jan 2000 18:32:56 GMT
Viewed: 
1325 times
  
Vlad Dumitrescu wrote:

Is there a loader on the RCX?
i'm surely not the definitive person to answer this questions, so don't
take the follwowing 100%'ly:
Yes there is a loader. It's activated whenever a certain kind of packet
arrives on LNP addressing port 0. The loading of the program requires
some tricky collaboration between the loader executing on the RCX and
the dll program executing on the host. E.g., the RCX first tells the
host to which address the program must be relocated, the host does the
relocation to this address and then downloads the program using a send /
wait for ack / resend algorithm

Can apps be downloaded to the RCX whithout reloading the kernel too?
Yes, of course, this is the actual thing dll was invented for

How about having several apps running simultaneously?
It is possible to run as many tasks as you like simultaneously under
legOS, but not via the program button mechanism. Just put all tasks into
one application, and start them from main() via the execi() system call.

Are the apps tailored to a specific kernel build (by means of GENLDS)?
Yes they are. If you build your apps against another kernel than the one
you downloaded to your RCX, they will most likely crash legOS.

In other words, when downloading the kernel, does it wait then for an app, more
or less like the original firmare?
i´m not sure if i understand your question correctly, anyways: After the
kernel is downloaded and started, it runs the loader task ( which is
part of the kernel ) automatically. This task will continously watch LNP
addressing port 0 and load programs if dll connects to the port.

greetings, Martin



Message is in Reply To:
  Trying to understand dynamic loading
 
Hi! Could anyone please explain a little how the dynamic loading facility works in legOS? I don't seem to get at full grip on it... and I can't test it either, right now... Is there a loader on the RCX? Can apps be downloaded to the RCX whithout (...) (25 years ago, 24-Jan-00, to lugnet.robotics.rcx.legos)

6 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