Software

Location

Some or all of CodeWarrior is available in the following labs:

Version

Metrowerks periodically issues a new version of CodeWarrior. If a release arrives before the start of a semester it is installed in all the labs. The only updates that are installed during the semester are those that are essential to the proper functioning of CodeWarrior as it is used in classes.

You can find the updates to CodeWarrior on the Metrowerks web site. You can also order an academic version of CodeWarrior through this web site.

Using CodeWarrior in the labs

You will store your CodeWarrior files on floppy disks, on ZIP disks or on zippy using AUFS virtual file servers. If you are using floppy disks or zippy to store your files, when you want to work on your program you should transfer the entire project folder to the hard disk of the computer you are using. The hard disk is both more reliable and faster than either floppies ord the network connection to AUFS. When you are done and wish to save your work, you should copy the folder back to the floppy or to zippy and erase it from the hard disk.

If you want to be able to open your project either on a Mac or a Windows PC you should use floppies or ZIP disks formatted for DOS.

Project Stationery Unique to SSU

In addition to the project stationery that is distributed with CodeWarrior, the CS Department provides project stationery that targets three platforms - PowerPC, 68K, and x86 (i.e. Windows). There are two versions of the stationery. The names of the stationery are: The only difference is that the mac_pc stationery creates projects that, by default, target the 68K Mac, wherease the pc_mac stationery by default targets the x86. These should be used by students who are required to do so in a course or who are developing on two different platforms (if one is a Mac and the other a PC).

In these projects the following settings have been chosen to simplify the process of debugging programs:

Using CodeWarrior on both a PowerPC and a 68K Mac

Since a project that targets the 68K will run on both 68K and PowerPC Macs, the simplest approach to working on both kinds of Macs is to target the 68K. If you want to be able to work on either a 68K or PowerPC Mac, but want the benefit of the faster processor on a PowerPC, you should use the mac_pc or pc_mac project stationery.

Using CodeWarrior on both a Mac and a PC

If you have CodeWarrior available on both a Mac and a PC, and the version supports the portable project format (this became available starting with CodeWarrior Pro 2), then you should create your project using the project stationery named "mac_pc" or "pc_mac".

If you use floppy disks or ZIP disks formatted for a PC you can read the disks in both a PC and a Mac and can transfer the project folder between the computers. If the Macintosh is running OS 8.1 or later, long filenames will be retained. Otherwise you may have to keep the names of the files short enough for the names to be transferred correctly (i.e. the standard DOS filename convention of 8 characters, a dot, and a 3 character extension) or you may have to restore the original filenames after copying them to a Windows environment.

Your project should have a name with the suffix ".mcp" in order for Windows to recognize that it is a CodeWarrior project. If you have trouble opening a project under Windows, examine the project filename. If it doesn't have an extension of ".mcp" rename it so that it does. Projects can always be opened by first launching CodeWarrior and then selecting Open from the File menu.

If you want to be able to create cross-platform projects on your own computer you will have to install the mac_pc pr pc_mac project stationery on your copy of CodeWarrior. To do so locate the folder named mac_pc or pc_mac on one of the Macs or PCs in the lab. On a Mac the fastest way is to use the Find command under the File menu in the Finder. In Windows use Find Files or Folders under the Start menu. Copy the entire mac_pc or pc_mac folder to a PC formatted floppy or ZIP disk. Then on the your computer copy folder to the CodeWarrior project stationery folder.

If you create a project in Windows and transfer it to a Macintosh you will not be able to double click the icon to launch CodeWarrior. However, you can launch CodeWarrior and then open the project.

Once CodeWarrior is launched select the appropriate target in the project window. If you add files to the project you must add them to all three targets. Be sure to choose the correct target and to verify that the source files are active under that target. In addition, you will have to convert any data files that your program uses (you do not have to convert program source files) to the format of the environment you are working in. This can be done from within the CodeWarrior editor (open the file and set the environment using the Document Settings Popup button).

Using both CodeWarrior and some other programming environment

If you are using CodeWarrior on the Mac and some other programming environment on a PC (e.g. Borland C++ or Microsoft Visual C++), then you must maintain distinct projects for each environment, transferring the source files (xxx.h and xxx.cp) between the two environments.

Problems with the Current Version

The version of CodeWarrior in use during the Fall, 2001 semester is Pro 6. The version of Java installed is 1.3 (version 1.3.1 is not compatible with the CodeWarrior debugger). The following problems are known to exist in the labs with this version:


[SSU Home Page] [SSU CS Department] [ CS Dept webmaster ] 09/15/01.