This manual describes how to use the CodeWarrior toolset to develop applications, libraries, shared libraries, and other executables that operate on the Mac OS.
The introduction includes the following sections:
Before you use the CodeWarrior IDE or a particular tool, you should read the release notes. They contain important last-minute information about new features, bug fixes, and incompatibilities that may not be included in the documentation.
The release notes directory is always included as part of a standard CodeWarrior installation. The release notes directory is also located at the top level of the CodeWarrior CD.
The CodeWarrior product for Mac OS development has some new features. The following are most notable.
Full support for developing Carbon applications. See Application Projects for more information on developing Carbon applications.
PowerPlant and the PowerPlant Constructor have been fully carbonized. See The PowerPlant Book, and Constructor for PowerPlant for more details. Also, see the Porting PowerPlant to Carbon Reference for help inporting your non-Carbon PowerPlant applications to be Carbon complient.
Read the release notes on the CD to learn about the new support added for the Velocity Engine (AltiVec), and also refer to the section entitled "C and C++ Support for Power PC," among others.
Changes have been made to remote debugging making it more flexible in multiple debugging environments. You can now specify and save a list of named remote connections, much like an address book of names, which can later be chosen for a debugging session. See the IDE User Guide and Debugger Setup and Options for more details.
MetroNub now supports debugging applications written to the MacOS 8.6 Multiprocessing 2.0 API. In addition, MetroNub for MP has been merged into MetroNub making for a clean single extension to support different Mac OS debugging environments.
This release of the Metrowerks CodeWarrior toolset is the last release that will support 68K development.
This release of the Metrowerks CodeWarrior toolset no longer supports Pascal development.
Table 1.1 lists every chapter in this manual, and describes the information contained in each. However, this manual only contains information specific to Mac OS software development. See "CodeWarrior Documentation" for a discussion of how these chapters relate to other CodeWarrior documentation.
| Chapter |
Description |
|---|---|
CodeWarrior is a multi-host, multi-language, multi-target development environment. What does that mean?
CodeWarrior runs on several different operating systems, including Windows and Mac OS. The features, human interface, and operation of CodeWarrior is very similar on all hosts.
You can use CodeWarrior to program in several languages, including C/C++, and Java. Third-party compilers provide support for other languages, such as Fortran. The languages available to you depend upon the target for which you are developing software.
You can use CodeWarrior to write software for several different chips or operating systems. CodeWarrior products support programming for a variety of embedded processors and real-time operating systems, the Java Virtual Machine, and desktop operating systems such as Windows and Mac OS.
Most features of CodeWarrior apply regardless of your preferred host, language, or target. General features of CodeWarrior are described in other manuals, such as the IDE User Guide.
However, each target has its own unique features. This manual describes those unique features.
For a complete understanding of CodeWarrior, you must refer to both the general documentation and the documentation that is specific to your particular target, such as this manual.
The documentation is organized so that various chapters in this manual are extensions of particular generic manuals, as shown in Table 1.2. For a complete discussion of a particular subject, you may need to look in both the generic manual and the corresponding chapter in this Targeting manual.
CodeWarrior documentation organization:
| This chapter... |
Extends... |
|---|---|
For example, to completely understand the C/C++ compiler, you need to know the information in the C Compilers Reference (which covers the C/C++ front-end compiler) and the information in the C and C++ Support for Power PC section of this manual, which covers the back-end compiler that generates target-specific code.
An Acrobat PDX index is included on the CodeWarrior Reference CD that provides a global index across all the CodeWarrior PDF documentation included with CodeWarrior. Add the CodeWarrior index to Acrobat's Available Indexes list using the Edit > Search > Select Indexes... menu option. Once added, you can easily search for all occurances of an item, like stationery, or Carbon, or anything.
All the manuals mentioned below are available as part of the CodeWarrior documentation and can be found on the CodeWarrior Reference CD. Online references do not have documentation on the CD.
http://www.metrowerks.com/training/
Free, online supplemental courses in a variety of programming disciplines like C, C++, and Java can be found at:
http://www.codewarrioru.com/
http://developer.apple.com/techpubs/
http://developer.apple.com/macos/macoverview/