From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,93435995d8aa380b X-Google-Attributes: gidfee84,public X-Google-Thread: f678f,93435995d8aa380b X-Google-Attributes: gidf678f,public From: nospam@zk3.dec.com (Eric Werme - replace nospam with werme) Subject: Re: VMS DEC-C and TRU64 DEC-C Date: 1999/11/24 Message-ID: <81feu6$cgi$1@nntpd.lkg.dec.com>#1/1 X-Deja-AN: 552837623 References: Organization: Digital Equipment Corporation Reply-To: (Replace nobody with werme) nobody@zk3.dec.com Newsgroups: comp.unix.osf.osf1,comp.unix.osf.misc "mrsignor" 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 > >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 <> <> <> Compaq Computer Corp. <> <> <> http://people.ne.mediaone.net/werme <>