Re: Help with student C/C++ program

Bruce Carter (bcarter@mentor.idbsu.edu)
Sun, 2 Jun 1996 22:37:25 EDT

At 11:35 PM 5/31/96, Brad Michels wrote:
>If I am writing code for a 68k machine and want my program to run on a
>power macintosh how do I get all the code (DATA not resources) out of
>the resource fork and into the data fork? (I want my new game in
>development ((quest for the gem)) to work on a power mac and on a 68k mac
>(called a FAT) I finally am learning C/C++ and I want to have my code in
>the resource fork AND data fork.)

Actually, code compiled for 680x0 machines will run on PowerMacs without
any changes (if they followed the guidelines in the first place) under the
680x0 emulator. To write applications that will take advantage of the
performance of a PowerMac and still run on a 680x0 machine, he just needs
to get a compiler that will generate a FAT binary, such as the Symantec
C/C++ version 8 or just about any version of CodeWarrior (I think it's up
to version 9 at the moment). It's all automatic. There are some coding
issues that will affect performance, though, and some of the toolbox calls
are slightly different (like passing 0L instead of nil). He should get the
new Inside Macintosh volumes that are appropriate for the application he is
developing. In fact, I'd recommend getting the Inside Macintosh CD-ROM,
it's much easier to find stuff.

--
Bruce Carter, Instructional Software Designer     (208)385-1851@voice
Boise State University, Boise, ID  83725          (208)385-1856@fax
http://mentor.idbsu.edu/BruceCarter/home.html     bcarter@mentor.idbsu.edu