Legacy Documentclose button

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

Apple Developer Connection
Advanced Search
Member Login Log In | Not a Member? Contact ADC

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

Get information on Apple products.
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Copyright © 2007 Apple Inc.
All rights reserved. | Terms of use | Privacy Notice