* Re: Dynamic libraries
[not found] <32098C5A.41C6@cti-ltd.com>
@ 1996-08-08 14:26 ` Richard Henderson
0 siblings, 0 replies; 2+ messages in thread
From: Richard Henderson @ 1996-08-08 14:26 UTC (permalink / raw)
> What is the latest on dynamic libraries/linking for Alpha Linux?
They seem to be working very well. You'd need to be talked through
getting yourself bootstrapped, but you could expect to be up in a
couple of days.
> Will we switch to ELF or stay with ECOFF?
We are in the process of switching.
> What is ECOFF? Perhaps compared to ELF and AOUT...
"Extended COFF". That's probably enough said about that.
> Where should I be looking for info rather than asking already answered
> questions here?
ftp://ftp.azstarnet.com/pub/linux/axp/glibc/README has some instructions
for getting started. I think that's the extent of the documentation at
the moment.
Past that, there is a list devoted to ELF and glibc:
echo subscribe axplinux-libc | mail majordomo@azstarnet.com
> Has anybody else ported Postgres95 somehow.
I know someone had aims at it about two months ago, but I never heard
back from him either way.
> One other problem I ran
> across was the spin lock function. It needs an atomic Test And Set
> instruction for a semaphore type operation. I won't say how I hacked
> around that. Does anybody know how to do this in a 21164 chip?
int testandset(int *lock)
{
int ret, temp;
asm volatile ("/* Inline test and set */\n"
"0:\t"
"ldl_l %0,%2\n\t"
"bne %0,1f\n\t"
"addl $31,1,%1\n\t"
"stl_c %1,%2\n\t"
"beq %1,0b\n"
"1:\t/* End test and set */"
: "=r"(ret), "=r"(temp), "=m"(*lock)
: "m"(lock));
return ret;
}
The load-locked/store-conditional sequence is very powerful and you can
implement just about any other syncronization mechanism using it.
r~
--
To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null
^ permalink raw reply [flat|nested] 2+ messages in thread
* Dynamic libraries
@ 1996-08-08 6:44 Mike Cruse
0 siblings, 0 replies; 2+ messages in thread
From: Mike Cruse @ 1996-08-08 6:44 UTC (permalink / raw)
Hi axp guys,
I new to this list so my questions are probably basic but I have a major
deadline to make so any help would be appreciated.
I just took delivery of of an Alpha 500/333 machine. It is an EB164
mother board. Linux installation is a bit trick the first time but I had
it up and running in under an hour. It has 128 megs, a DEC Ethernet card
and a fast wide NCR53c825 SCSI card with a Quantum 4Gig drive. It's job
is to be a fast database server.
I have msql running fine but would like to get Postgres95 running. I got
hold of the source and started the port but soon found that it depends
on dynamic libraries, specifically the availability of libdld. The
Makefile gives me a choice but libld is tied to ELF format binaries and
Alpha Linux seems to use ECOFF. I've seen COFF before but not ECOFF.
So here goes:
What is the latest on dynamic libraries/linking for Alpha Linux?
Will we switch to ELF or stay with ECOFF?
What is ECOFF? Perhaps compared to ELF and AOUT...
Where should I be looking for info rather than asking already answered
questions here?
Any other Axp'ers in the San Jose area?
Has anybody else ported Postgres95 somehow.
I actually managed to do a complete build by short circuiting al of the
dynamic loading stuff, hoping that it might only be needed for user
written 'C' functions but alas initdb needs it. One other problem I ran
across was the spin lock function. It needs an atomic Test And Set
instruction for a semaphore type operation. I won't say how I hacked
around that. Does anybody know how to do this in a 21164 chip? I don't
have the manuals yet. Seems like a kernel semaphore should work but the
Linux x86 port of postgres used an xchg instruction.
I think I might write a clearer install doc when I have some time, at
least for the EB164 board.
Thanks in advance for any info
Mike Cruse
CTI Limited.
--
To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1996-08-08 14:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <32098C5A.41C6@cti-ltd.com>
1996-08-08 14:26 ` Dynamic libraries Richard Henderson
1996-08-08 6:44 Mike Cruse
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox