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 / 4709
4708  |  4710
Subject: 
Re: A robot who knows his position
Newsgroups: 
lugnet.robotics
Date: 
Wed, 28 Apr 1999 08:00:27 GMT
Viewed: 
1078 times
  
In lugnet.robotics, lego-robotics@crynwr.com (John A. Tamplin) writes:

Actually, software floating point is quite doable on the H8.  In fact, at
least egcs 1.1.[1,2] includes FP emulation (config/fp-bit.c), which gets
put into libgcc2.a, which get merged into libgcc.a.  You don't have to do
anything special to use them -- just use float variables as normal (the H8
port treats float and double as the same -- 32 bit floats).

This is great! I thought it was possible, but my knowledge of C isn't simply
enough to figure out HOW TO.

You can get the various math functions typically in libm.a from glibc.  It
takes a bit of work to get them compiled, since glibc is intended for 32
bit targets running a Unix-like OS, but I have been able to get all the
str* functions and most of the math functions compiled and they work fine.
Software emulation of floating point isn't terribly fast, but it is quite
usable.

Yes, when you have floats you can use/adapt standard math libraries. I'll try
this.

When I have the time (yeah, you've heard that before so don't hold your
breath), I plan on releasing a configuration to use the parts of glibc that
make sense on the RCX so you can just link your code to libc.a as usual to
get all of these functions.

This would be of great help (not only to me I guess...)

Thanks for all your valuable info.

Mario



Message is in Reply To:
  Re: A robot who knows his position
 
(...) Actually, software floating point is quite doable on the H8. In fact, at least egcs 1.1.[1,2] includes FP emulation (config/fp-bit.c), which gets put into libgcc2.a, which get merged into libgcc.a. You don't have to do anything special to use (...) (25 years ago, 27-Apr-99, to lugnet.robotics)

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