From: Richard Henderson <richard@atheist.tamu.edu>
Subject: Re: Dynamic libraries
Date: Thu, 8 Aug 1996 09:26:10 -0500 (CDT) [thread overview]
Message-ID: <m0uoW2N-0001uKC@atheist.tamu.edu> (raw)
In-Reply-To: <32098C5A.41C6@cti-ltd.com>
> 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
next parent reply other threads:[~1996-08-08 14:26 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <32098C5A.41C6@cti-ltd.com>
1996-08-08 14:26 ` Richard Henderson [this message]
1996-08-08 6:44 Dynamic libraries Mike Cruse
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox