|
> cmpsi2 is part of the libmint.a library. Would you please post (or send me)
> your source code and your Makefile?
I don't find cmpsi2 in the sources of LegOS 0.2.5 (in lib/mint)! I found a
_cmpsi2.o in libgcc.a (from egcs 1.1.2), but I really don't know how gcc (and
ld) uses that library.
The makefiles come from the LegOS tarball. According to the output, ld tries
to link the object with libmint (but it fails):
h8300-hitachi-hms-ld -T /home/eswalens/lego/legOS/boot/legOS.lds -relax
-L/home/eswalens/lego/legOS/lib main.o -lc -lmint -lfloat -lc++ -o main.ds1
-Ttext 0xb000
What do you suspect?
Here is the faulty function (HZ is defined to be 1000):
double getVarVal(Variable *v)
{
if (v->reset == 0)
v->reset = sys_time;
return v->val + (v->rate[current_loc[v->task]] * (sys_time - v->reset)) / HZ;
}
typedef struct {
char task;
double val;
double *rate;
time_t reset;
} Variable;
Also, what's the size of double?
Eric
--
email: eric.swalens@easynet.be
web: http://student.ulb.ac.be/~eswalens
|
|
Message has 1 Reply: | | Re: ___cmpsi2
|
| (...) Had to look myself to belive it. But you are right, cmpsi2 is in the 0.2.6 system, but not in the 0.2.5 system. (...) No, that are the wrong ones. You need the lib functions for the cross compiled code. libgcc.a is code that gcc needs on your (...) (23 years ago, 9-May-02, to lugnet.robotics.rcx.legos)
|
Message is in Reply To:
| | Re: ___cmpsi2
|
| (...) cmpsi2 is part of the libmint.a library. Would you please post (or send me) your source code and your Makefile? Regards, Mike (23 years ago, 9-May-02, to lugnet.robotics.rcx.legos)
|
7 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
|
|
|
|