* VMS DEC-C and TRU64 DEC-C
@ 1999-11-20 5:00 mrsignor
1999-11-20 5:00 ` Martin Heller
1999-11-24 5:00 ` Eric Werme - replace nospam with werme
0 siblings, 2 replies; 3+ messages in thread
From: mrsignor @ 1999-11-20 5:00 UTC (permalink / raw)
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
""""""""""""""""""""""""""""""""
allows you to probe a buffer for read and/or write access. Most useful when
writing API's, typical usage is to ensure that the underlying API has r/w
access
to the callers buffer.
_INSQTI + INSQHI
""""""""""""""""""""""""""
This function inserts an entry at the front of a longword queue in an
indivisible
manner. This operation is interlocked against similar operations by other
processors
or devices in the system. Useful for enqueing work items from within an
AST (signal handler), when the non-ast code be be SIMULATANEOUSLY
de-queueing a work item, i.e you dont need to disable AST's/Block Signals.
Also useful when using Pthreads.
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
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.
TIA
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: VMS DEC-C and TRU64 DEC-C
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
1 sibling, 0 replies; 3+ messages in thread
From: Martin Heller @ 1999-11-20 5:00 UTC (permalink / raw)
mrsignor schrieb:
[SNIP]
> or rather lack of comformity (it seems).
Well, conformity to what ? OpenVMS ? ;-)
> Under OpenVMS i make regular use of the following pragmas, defined
> <builtins.h>
> and supported within PALCODE.
>
> _PROBER + _PROBEW
...
> _INSQTI + INSQHI
> """"""""""""""""""""""""""
They're OpenVMS specific ...
> or devices in the system. Useful for enqueing work items from within an
> AST (signal handler), when the non-ast code be be SIMULATANEOUSLY
> de-queueing a work item, i.e you dont need to disable AST's/Block
SRM has to different types of PALCODE : one for VMS, another for UNIX in
order to modifiy the CPU for VMS or Tru64 - AST are on of them ... so
you can't expect to simply port such operating-system dependent software
without some hurdles .
Have you taken a closer look at the porting guide from DEC ?
http://www.unix.digital.com/faqs/publications/pub_page/porting.html
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: VMS DEC-C and TRU64 DEC-C
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
1 sibling, 0 replies; 3+ messages in thread
From: Eric Werme - replace nospam with werme @ 1999-11-24 5:00 UTC (permalink / raw)
"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 <>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1999-11-24 5:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox