Usenet comp.unix.osf.misc (1992-2004)
 help / color / mirror / Atom feed
From: nospam@zk3.dec.com (Eric Werme - replace nospam with werme)
Subject: Re: VMS DEC-C and TRU64 DEC-C
Date: 1999/11/24	[thread overview]
Message-ID: <81feu6$cgi$1@nntpd.lkg.dec.com> (raw)
In-Reply-To: LjnZ3.5289$L5.752007@typhoon1.gnilink.net

"mrsignor" <mrsignor@bellatlantic.net> writes:

>I am porting some code from OpenVMS (Alpha) to TRU64, but have come
>upon a few problems, quite serious from my perspective, with the compiler,
>or rather lack of comformity (it seems).

>Under OpenVMS i make regular use of the following pragmas, defined
><builtins.h>
>and supported within PALCODE.


>_PROBER + _PROBEW
>_INSQTI + INSQHI
>Examining the TRU64 documentation, there seems to be no equivalent.

>Q1) Do these functions exist, or an equivalent, if so where, and what are
>they called

They probably don't exist in Tru64 space.

>Q2) Assuming these functions don't exist, can anyone (from ComPaq) comment
>        as to why they are not present, bearing in mind they are PALCODE
>        routines.

The VMS and Tru64 PALcode is very different and reflects the differing
backgrounds of the two OSes.  I know the VAX has queuing instructions
much like the PALcode, I wouldn't be surprised if there are probe
instructions too.

BSD Unix had to run on other platforms and it generally relies on
C code for linked list management.  Besides, you often have to do
other work beyond the list manipulation and have to take out a SMP
lock anyway.  At least, that's the line I'd expect to hear.  The Unix
PALcode has things like an instruction for swapping the processor's
interrupt level to implement the "spl(s)" calls that run throughput Unix.

So basically, the PALcode is the OS-specific low level glue needed to
ease matching the OS to the hardware. It's not really designed with
portability in mind.  You'd run into similar problems porting to other
processors.

The architecture manual at:

http://ftp.digital.com/pub/Digital/info/semiconductor/literature/dsc-library.html

may be the document that goes into gory detail about the common and
OS-specific PALcode pieces.
--
<>    Eric (Ric) Werme    <> The above is unlikely to contain    <>
<>    ROT-13 addresses:   <> official claims or policies of      <>
<>   <jrezr@mx3.qrp.pbz>  <> Compaq Computer Corp.               <>
<>  <jrezr@zrqvnbar.arg>  <> http://people.ne.mediaone.net/werme <>



      parent reply	other threads:[~1999-11-24  5:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-11-20  5:00 VMS DEC-C and TRU64 DEC-C mrsignor
1999-11-20  5:00 ` Martin Heller
1999-11-24  5:00 ` Eric Werme - replace nospam with werme [this message]
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