[geeks] AutoCAD hack

Joshua D Boyd geeks at sunhelp.org
Fri Dec 21 17:18:59 CST 2001


I've been reading the Autodesk file.  I love this bit I came across 
(http://www.fourmilab.ch/autofile/www/f/3774.html) on how they got autocad onto
the MacII.

>From that page:
There was no compiler for the Macintosh which generated 32 bit code, permitted
data segments larger than 32K, or compiled in-line floating point instructions:
all prerequisites for AutoCAD. But, I noted, at the very same time we were 
shipping AutoCAD on the Sun 3, which used the very same Motorola 68020 
microprocessor as the Macintosh II. So, I simply compiled all of AutoCAD 
except for the display, keyboard, mouse, and file I/O drivers on the Sun, 
linking them into one huge relocatable file which I called ``The Titanic''. 
Then, using LightSpeed (later Think) C, I wrote a small conventional Macintosh 
application which obtained a large chunk of memory, loaded the Titanic into 
this block of memory, dynamically relocating it and linking external 
references in it to ``stubroutines'' defined in the Macintosh program, and then
launching it. The Macintosh program, ``Tugboat,'' thus nudged the Titanic into
place on the Macintosh. 

-- 
Joshua D. Boyd



More information about the geeks mailing list