[gs-devel] 68k vs ppc

Adam Heinz AHeinz at exstream.com
Thu Jul 31 08:38:48 PDT 2003


>>Has anyone tried to link to the (ppc) ghostscript shlib from a 68k shlib 
>>or app?
> Why would you try to?
> Apple hasn't shipped a 68K machine in almost 10 years!  Or is this 
> for some embedded device?

The vendor whose product I am writing an Extension for uses 68k-aligned structs for reverse compatibility in their data.  I'm not actually producing 68k bytecode -- sorry for that confusion.

>>When I include Ghostscript into my (CodeWarrior 8.3) 68k shlib, I use
>>extern "C" {
>>   #pragma options align=power
>>   #include "shlib_api.h"
>>   #pragma options align=reset
>>}
> align=power is for powerpc alignment, NOT 68K...
> Also, for 68K, you have to worry about the A4 global problems...

Whoops, that should read "iapi.h" -- since my project is compiling with 68k-aligned structs, I wanted to protect Ghostscript.

adam




More information about the gs-devel mailing list