To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.roboticsOpen lugnet.robotics in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / 1939
1938  |  1940
Subject: 
Re: legOS and alternate operating systems [now off topic]
Newsgroups: 
lugnet.robotics
Date: 
Wed, 30 Dec 1998 23:11:51 GMT
Original-From: 
Ben Laurie <ben@algroup.co*spamcake*.uk>
Viewed: 
1183 times
  
Norman Fair wrote:

Actually, this does concern Legos programming.  There is only so much
memory in the RCX, so you have to program very efficiently.  You have to be
able to squeeze a program in there.

What I meant in my previous post is, when you linked in a "traditional"
library it only linked the routines you actually used, not the entire
library.  But with object oriented you link in the entire class, even if
you only use one or two methods.

I don't believe this claim.

Plus you have to link in all the classes
that the class you are using is inherited from.  That can be a great deal
of overhead.

It can be - but actually you only have to link in what you use, you have
to _include_ what you inherit from, but if you don't use it, you don't
link it.

The typical "Hello world" program for Windows using C is only
a couple kilobytes, about the same as a DOS version.  If you write it in
C++ (worse yet, with Windows wrapping classes such as Microsoft Foundation
Classes), your program will start with at least 100k or more of size.

Again, I don't believe this. If I write:

cout << szString;

that needs _less_ code than:

printf("%s",szString);

since in the latter case I get all the stuff for printing integers,
floats, and what-all as well as the stuff I wanted, for printing
strings.

Cheers,

Ben.

--
Ben Laurie            |Phone: +44 (181) 735 0686| Apache Group member
Freelance Consultant  |Fax:   +44 (181) 735 0689|http://www.apache.org/
and Technical Director|Email: ben@algroup.co.uk |
A.L. Digital Ltd,     |Apache-SSL author     http://www.apache-ssl.org/
London, England.      |"Apache: TDG" http://www.ora.com/catalog/apache/
--
Did you check the web site first?: http://www.crynwr.com/lego-robotics



Message is in Reply To:
  RE: legOS and alternate operating systems [now off topic]
 
Actually, this does concern Legos programming. There is only so much memory in the RCX, so you have to program very efficiently. You have to be able to squeeze a program in there. What I meant in my previous post is, when you linked in a (...) (26 years ago, 30-Dec-98, to lugnet.robotics)

4 Messages in This Thread:



Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    
Active threads in Robotics

 
Verified and Trusted Team of Hackers
13 hours ago
Custom Search

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