Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: PowerPC System Software /
Chapter 2 - Mixed Mode Manager / Mixed Mode Manager Reference
Mixed Mode Manager Routines / Determining Instruction Set Architectures


GetCurrentISA

You can use the GetCurrentISA function to get the current instruction set architecture.

ISAType GetCurrentISA (void);
DESCRIPTION
The GetCurrentISA function returns the current instruction set architecture. See "Instruction Set Architectures" on page 2-35 for a list of the values GetCurrentISA
can return.

SPECIAL CONSIDERATIONS
Currently, the GetCurrentISA function is defined as a compiler macro.

#if defined(powerc) || defined(__powerc)
#define GetCurrentISA()       ((ISAType) kPowerPCISA)
#else
#define GetCurrentISA()       ((ISAType) kM68kISA)
#endif
The implementation details are subject to change.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
3 JUL 1996