Skip to contentSkip to conversation

where to put 64 bit libmilli?

DISCUSSION Alan Modra 1 participant 1 message Jan 3, 2001 1 message not in the archive

lore
Share & tools
lore

Alan Modra

author
#1 lore raw
In reply to a message not in the archive
Quoted 7 lines · Paul Bame

I have source code for HP's 64-bit millicode and am working on making it compilable with our tool chain. But the bigger question is where do I put it?

Right now millicode is part of libgcc.a in top-of-branch gcc, but I seem to recall some linker magic, and when/if that happens I don't know where to put the millicode stuff.

Distributing libmilli with gcc makes sense as it is gcc that makes use of the millicode routines, however there's a chicken and egg problem with the linker. Once we enable the automagic libmilli search, ld will complain if it can't find libmilli.a. That will make the binutils test suite fail until gcc is installed. Hmm, I suppose binutils could install a dummy libmilli.a to get around that problem.

Anyway, the place to put the source is gcc/config/pa/, installing libmilli.a to ${prefix}/lib/ for native tool-chains and to ${prefix}/${target}/lib for cross tool-chains. Err, come to think of it, the 64 bit linker doesn't yet have the libmilli.a search capability. Also, we probably want to name the 64 bit millicode library libmilli64.a so a multi-target linker can choose the right millicode library.

So until I get my act together and find time for some binutils/gcc work, it may be best to continue putting the millicode functions into libgcc.

Alan

Signature · 1 line
Linuxcare.  Support for the Revolution.