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 / 119
118  |  120
Subject: 
floats
Newsgroups: 
lugnet.robotics.rcx.legos
Date: 
Mon, 12 Apr 1999 04:00:55 GMT
Viewed: 
984 times
  
When I try to use a float in my code, I get a compiler message somewhere
along these lines:
<begin error message>
../code/light-brait.o(.text+0x80):light-brait.c: undefined reference to
`__floatsisf'
../code/light-brait.o(.text+0x90):light-brait.c: undefined reference to
`__mulsf3'
../code/light-brait.o(.text+0x98):light-brait.c: undefined reference to
`__fixsfsi'
../code/light-brait.o(.text+0x80):light-brait.c: undefined reference to
`__floatsisf'
../code/light-brait.o(.text+0x90):light-brait.c: undefined reference to
`__mulsf3'
../code/light-brait.o(.text+0x98):light-brait.c: undefined reference to
`__fixsfsi'
../code/light-brait.o(.text+0x80):light-brait.c: undefined reference to
`__floatsisf'
../code/light-brait.o(.text+0x90):light-brait.c: undefined reference to
`__mulsf3'
../code/light-brait.o(.text+0x98):light-brait.c: undefined reference to
`__fixsfsi'
<end error message>

I would assume these are in some way related to various warnings I got
during compilation of the compiler, which I incorrectly assumed would only
limit my accuracy while using floats, not my actual ability to use them
at all.

So- can anyone explain to me exactly what the limits are? Can I use
floats? Are other types affected? Do I have to define them in a particular
way? Or do I just need to hack around this? I mean, it's not too difficult
(particularly in this case) but it would be nice to know. Any thoughts
would be appreciated...

Luis
P.S. I'm currently reading "Vehicles: Experiments in Synthetic
Psychology" by Valentino Brandenberg. It has absolutely nothing concrete
:) but a lot of interesting ideas about how animals and minds evolve, and
how those patterns might be duplicated in simple robots like our own.
It's MIT Press, 1984, and is avalaible at Amazon (in fact, the author
mentions the RCX in a brief comment at Amazon...0 If anyone is
interested, I'd be happy to type up a slightly longer description.


#######################################################################

"They call the faithful to their knees
to hear the softly spoken magic spell:"

"There's no place like home...
There's no place like home...
There's no place like home."

-Pink Floyd, Dark Side of the Moon
-Dorothy, The Wizard of Oz

#######################################################################



Message has 1 Reply:
  Re: floats
 
(...) The errors you see are due to the fact that there is no hardware support for floating point. The compiler substitutes calls to the software equivalents, which do not exist; hence the linker errors you see. The math routines that do exist are (...) (25 years ago, 12-Apr-99, to lugnet.robotics.rcx.legos)

3 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