How do you identify VAX/PMAX cpu's from software?

Frank Wortner frank at croton.DEC.COM
Tue May 30 23:57:00 AEST 1989


In article <7005 at cbmvax.UUCP>, grr at cbmvax.UUCP (George Robbins) writes:

> Subject: Re: How do you identify VAX/PMAX cpu's from software?

> Assuming you really want to do such a disgusting and questionable thing,
> you might take a look at /etc/sizer (man sizer).  [...]  Apparently it
> looks in the running kernel to see what kind of machine the kernel
> thinks it's running on, though there seems to be a lot of other
> silliness going on.
> 
> I don't know what this program does on the PMAX or on other than VAXen.

Unfortunately, /etc/sizer does not exist on DECstation 3100 (PMAX), since the program is
VAX-specific.

Distinguishing a VAX from a PMAX can probably be best done at compile time.  Afterall,
you have to generate the proper binary for the proper machine.  As far as distiguishing
subtypes of CPUs, look in /usr/include/machine/hwconf.h on PMAXen and
/usr/include/machine/cpu.h on VAXen for information.  Those files contain macros for
processor type identification.

Regards,

						Frank Wortner
						Ultrix Resource Center
						Digital Equipment Corp.
						frank at croton.dec.com

Opinions expressed here are mine alone.  Feel free to share them.



More information about the Comp.unix.ultrix mailing list