[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: What is the best way to access the gestalt manager in MCL?
- To: osiris@cs.utexas.edu (Rob Browning), info-mcl@cambridge.apple.com
- Subject: Re: What is the best way to access the gestalt manager in MCL?
- From: straz (Steve Strassmann)
- Date: Mon, 29 Aug 1994 17:23:14 -0400
At 3:14 AM 8/24/94 -0500, Rob Browning wrote:
>I just want to be able to ask the machine that MCL is running on two questions:
>
>1) Which CPU do you have?
>2) Do you have an FPU?
>
>Is there an easy way to do this? Am I best off to learn the gestalt traps
>and call them directly, or is there a higher level interface?
>
>Thanks,
>
>--Rob.
There's several ways to get this.
*environs* carries a lot of this junk which gets detected when you launch MCL.
(machine-version) pretty-prints some of it into a string.
(gestalt :|mach|) tells you the machine - look at *known-gestalt-machine-types*
(gestalt :|proc|) tells you the processor - look at *known-gestalt-processor-types*
(gestalt :|fpu |) tells you which fpu is available - *known-gestalt-fpu-types*
? *environs*
(:machine-type "Macintosh Quadra 950" :system-version "7.1" :appleevents t :processor 68040 :fpu 68040 ...)
? (machine-version)
"Macintosh Quadra 950 with 68040, 68040, Apple extended keyboard"