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 / 1855
1854  |  1856
Subject: 
C standard functions with legOS?
Newsgroups: 
lugnet.robotics.rcx.legos
Date: 
Wed, 25 Apr 2001 10:02:24 GMT
Viewed: 
1438 times
  
Is it possible to use functions from C standard libraries with legOS,
e.g. sin() from math.h or abs() from stdlib.h?

They are a part of gcc, but e.g. math.h seems to produce compiler
errors.

Best regards.
Michael Wisse



Message has 2 Replies:
  Re: C standard functions with legOS?
 
(...) The cross-compiler is set up to not use standard libraries. This is to give more control over the code produced. Also, many standard functions just wouldn't work on the H8. There is a float library (lib/float), which allows use of floating (...) (24 years ago, 25-Apr-01, to lugnet.robotics.rcx.legos)
  Re: C standard functions with legOS?
 
(...) As other people have pointed out, its not possible to use them straight off. I've written some floating point code for my own use to do conversions between rectangular (x,y) and polar (dist, bearing) calculations. The codes not documented I'm (...) (24 years ago, 27-Apr-01, to lugnet.robotics.rcx.legos)

5 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