On Friday 17 August 2007 19:16, Sergey Plis wrote:
> Hi Bernd,
>
> Did you have any plans of porting bigforth to x86_64 architecture?

Plans: Yes. Time: Not enough.

> For now I cannot compile it on such machine:

I can, and I have done that for the last 3 years.

> gcc -m32 -g -O2 -Wall -DVERSION_DATE='"'"$(date '+%d%b%Y' |
> tr '[A-Z]' '[a-z]')"'"'
> -DINSTDIR='"'"/home/pliz/soft//lib/bigforth"'"' bigforth.o linker.o
> -ldl  -o bigforth
> /usr/bin/ld: skipping incompatible /usr/bin/../lib/libdl.so when
> searching for -ldl
> /usr/bin/ld: skipping incompatible /usr/bin/../lib/libdl.a when
> searching for -ldl
> /usr/bin/ld: skipping incompatible /usr/lib/libdl.so when searching
> for -ldl /usr/bin/ld: skipping incompatible /usr/lib/libdl.a when
> searching for -ldl /usr/bin/ld: cannot find -ldl
> collect2: ld returned 1 exit status
> make: *** [bigforth] Error 1
>
> Even though:
> 0 lrwxrwxrwx 1 root root 15 Aug 17 09:42 /usr/lib/libdl.so ->
> /lib/libdl.so.2

Can you do a

file -L /usr/lib/libdl.so

? This must give an answer like

/usr/lib/libdl.so: ELF 32-bit LSB shared object, Intel 80386, version 1 
(SYSV), for GNU/Linux 2.6.4, not stripped

I suppose your libdl.so is a 64 bit library, and your distribution keeps 
the 32 bit libraries somewhere else, if at all.

> Have no idea why that happens.
>
> Another possible nice thing on x86_64 would be rewrite of float data
> set using sse2 which would give 16 float registers thus increasing
> stack depth :) I know this is too much but I thought I'd ask if you
> have such plans :)

Well, with SSE2 you don't have a stack any longer, it's a traditional 
register file. Therefore, the code has to change significantly.

-- 
Bernd Paysan
"If you want it done right, you have to do it yourself"
http://www.jwdt.com/~paysan/

Attachment: pgplbhrAnQiSV.pgp
Description: PGP signature

Reply via email to