• Updated 2023-07-12: Hello, Guest! Welcome back, and be sure to check out this follow-up post about our outage a week or so ago.

68k Programming Guide

chuzzum

Member
I added a basic 68k programming guide to the wiki. Right now it just covers installing MPW and compiling a basic program, but the next tutorial will go more in-depth and cover aspects of the Macintosh Toolkit like the Window and Event managers. Let me know what you think of it.

:b&w:

 

Emehr

Well-known member
Nice work! It's good to see a quick-start for using MPW. One note, pressing 'command-return' is equivalent to using 'enter' on the numpad.

@Nathan: I'm fairly certain you can compile 68k code on a PPC with MPW. I've never done it personally. I started Mac programming with Codewarrior's Discover Programming kit and it only allowed 68k builds. I switched to MPW so I could compile for PPC. I'll have to look into that...

 

chuzzum

Member
Yes, it's quite possible to do 68k development on a PPC. I believe you can even develop System 6 apps, although I haven't tested it yet.

I'd like to expand the tutorial to the point where it introduces the user to all the basic Toolkit functions and guides them through the process of creating a standard Mac application with DAs, menus, saving and loading, etc. It will probably be a work in progress for a long while though, there's a lot of ground to cover.

 

macgreg

Well-known member
Very nice.

On a PPC using CodeWarrior (can't remember the exact version) you can definitely build 68k apps (and a few other platforms including Palm IIRC).

 

ChristTrekker

Well-known member
If there are any tips on targeting specific CPUs, e.g. how to make use of '040 features with or without leaving out '030 machines, that could be interesting as well.

I'm more interested in Unix programming than Sys7 programming, but that's beside the point.

 

chuzzum

Member
Top