Subject: Re: installation without MacOS
To: Nyef <nyef@softhome.net>
From: Michael R. Zucca <mrz5149@acm.org>
List: port-mac68k
Date: 12/22/2000 08:23:49
At 7:26 PM -0500 12/20/00, Nyef wrote:

>I did a little more work on this recently. It now displays some
>information about the partitions on a SCSI hard drive with ID 0.

Wow! This really rocks! Keep up the good work!

Consider making your code also work from a driver partition. That way
people can boot without a floppy and the system takes care of "stage 1" for
you.

>On a related topic, does anyone know how to persuade gcc to generate code
>that uses MacOS conventions? (all globals via offsets to %a5, no absolute
>jumps/calls, etc.)

I'm assuming you only care about MacOS calling conventions for the Toolbox
Traps? What you could do is compile your gcc code with PC relative globals
and the normal gcc style ABI and then wrap each Toolbox function with a bit
of assembly glue. The glue could save and restore A5 in a PC relative
global and convert the gcc 68k ABI into the MacOS ABI and vice versa.

I don't think there's a version of gcc that supports the MacOS ABI. I could
be wrong, though.

Good luck!

____________________________________________________________________
 Michael Zucca - mrz5149@acm.org - http://www.mdc.net/~mrz5149/
 "I will choose a path that's clear. I will choose Freewill. "
  --Rush, Freewill
____________________________________________________________________