Subject:
|
Re: NQC v. LegOS / size
|
Newsgroups:
|
lugnet.robotics
|
Date:
|
Wed, 10 Feb 1999 05:02:29 GMT
|
Viewed:
|
1614 times
|
| |
| |
lego-robotics@crynwr.com (dave madden) writes:
> I haven't had need of any complicated math, so I haven't written the
> helper routines; maybe Markus has some. (Alternatively, I believe
> Kekoa identified some math routines in the RCX ROM...it might be
> possible to use those.)
It doesn't have to be complex math. I had the same problem
using the modulo operator. I did a little digging to figure
out why libgcc.a wasn't compiling properly. It turns
out that if you add the -Dinhibit_libc to the CFLAGS in the
top level Makefile of gcc you should end up with a useable
h8300 libgcc.a.
CFLAGS=-g -O2 -Dinhibit_libc
^^^^^^^^^^^^^^
Edit the makefile and add the define as above. Remake everything
and you should be all set. Also, add libgcc.a when you link.
However, I'm doing this from memory so your mileage may vary.
BTW: Once I did this it also compiled the C++ compiler without
a hitch.
-rick
|
|
Message has 1 Reply: | | Re: NQC v. LegOS / size
|
| (...) BEAUTIFUL. I spent all of last night trying to figure out a) why make was calling (and not finding) stdio.h and b) how I could make make realize that I didn't care about libc. That did the trick... Thanks. Luis ###...### "They call the (...) (26 years ago, 12-Feb-99, to lugnet.robotics)
|
Message is in Reply To:
| | Re: NQC v. LegOS / size
|
| =>From: Ben Laurie <ben@algroup.co.uk> =>... =>Markus L. Noga wrote: =>> Apart from the limitations imposed by H8 architecture (an 8/16 bit =>> platform with the usual constraints on integer length, available memory =>> and library functions), (...) (26 years ago, 9-Feb-99, to lugnet.robotics)
|
23 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
This Message and its Replies on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
Active threads in Robotics
|
|
|
|