Subject:
|
Re: NQC v. LegOS / size
|
Newsgroups:
|
lugnet.robotics
|
Date:
|
Tue, 9 Feb 1999 21:28:47 GMT
|
Original-From:
|
dave madden <DHM@PARADIGM.WEBVISIONspamless.COM>
|
Viewed:
|
1591 times
|
| |
| |
=>From: "John A. Tamplin" <jat@Traveller.COM>
=>...
=>On Tue, 9 Feb 1999, dave madden wrote:
=>
=>> Yes, the H8 divide instruction can only do (16 bits)/(8 bits), so GCC
=>> calls a helper routine [...]
=>
=>Are you linking libgcc.a? I believe it has all the math helper functions
=>that are required.
That's where they would be, if there were any. I don't think GCC has
code for the helpers; as I recall, it relies on the native C compiler
to produce object files which are archived into libgcc.a. For
systems where GCC *is* the native compiler, it either has to be able
to "open code" the operations (i.e. express them as raw machine
instructions), or the helpers have to have been provided by some other
means. (I think the creation of libgcc.a is where some people have
been having trouble building the cross-compiler.)
Can your installation of gcc/egcs compile _& LINK_ this program:
int main( )
{
extern int x;
extern int y;
return x / y;
}
Mine tries to call a helper function for the divide, and I don't have
it anywhere in the material from EGCS that I was able to build &
install.
d.
--
Did you check the web site first?: http://www.crynwr.com/lego-robotics
|
|
Message has 1 Reply: | | Re: NQC v. LegOS / size
|
| (...) In most cross-compilers, there is assembly code for those helper functions. In EGCS, those are in config/h8300/lib1funcs.asm. (...) It calls __divhi3, which is defined in config/h8300/lib1funcs.asm. I built egcs-1.1.1 without any changes (that (...) (26 years ago, 9-Feb-99, to lugnet.robotics)
|
Message is in Reply To:
| | Re: NQC v. LegOS / size
|
| (...) Are you linking libgcc.a? I believe it has all the math helper functions that are required. John A. Tamplin Traveller Information Services jat@Traveller.COM 2104 West Ferry Way 256/705-7007 - FAX 256/705-7100 Huntsville, AL 35801 -- Did you (...) (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
|
|
|
|