|
Where's ".div" implemented?: msg#00275gcc.help
I'm compiling the following program using GCC-3.2.3 configured as a cross-compiler targeting "sparc-linux" and hosted on ix86-linux: int main (void) { int i; i = i / 3; return 0; } and compile it with: sparc-linux-gcc -mcpu=v7 -c tst.c -o tst.o but when I try to link it: sparc-linux-ld tst.o /path/to/gcc-lib/libgcc.a -o tst I get an error about not been able to find ".div". I thought that these integer-math routines were in "libgcc.a", but obviously they are not! Looking arround I found a ".div" function in *libc*, but the problem is I that I don't want to link my program with the glibc monster. All I want is a library that supports the *compiler generated* code. Isn't "libgcc" supposed to be exactly that? Any hints?? /npat -- Don't ever think you know what's right for the other person. He might start thinking he knows what's right for you. -- Paul Williams, `Das Energi' |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Almost have standard crtbegin/end with vxworks/mips gcc 3.2.3: 00275, Ken Faiczak |
|---|---|
| Next by Date: | Override Private: 00275, Liguo Song |
| Previous by Thread: | Almost have standard crtbegin/end with vxworks/mips gcc 3.2.3i: 00275, Ken Faiczak |
| Next by Thread: | Override Private: 00275, Liguo Song |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |