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 / 2542
2541  |  2543
Subject: 
Re: ___cmpsi2
Newsgroups: 
lugnet.robotics.rcx.legos
Date: 
Thu, 9 May 2002 11:48:07 GMT
Viewed: 
2359 times
  
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 (...) (22 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 (22 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
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR