-
Curious because I know the compiler can compile and link to .a files statically but I've never tried dynamically, and I'm curious as to whether the compiler supports the actual Classic Mac OS dynamic library format? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
For PowerPC, the linker supports shared libraries in XCOFF format. The actual Mac OS dynamic library format is PEF, and you can use the Following the tradition from AIX (which Apple based their PowerPC support on originally), both static and dynamic libraries are often stored in .a files. In fact, all the operating system functions are accessed via shared libraries (such as On 68K, Retro68 currently has no support for Shared Libraries. |
Beta Was this translation helpful? Give feedback.
-
Look in To load shared libraries at runtime (as opposed to at program startup as this example does), read Apple's documentation about the Code Fragment Manager to find out what the equivalents of UNIX |
Beta Was this translation helpful? Give feedback.
For PowerPC, the linker supports shared libraries in XCOFF format. The actual Mac OS dynamic library format is PEF, and you can use the
MakePEF
andMakeImport
tools to convert (MakePEF
for XCOFF -> PEF, andMakeImport
for PEF -> XCOFF stub library).Following the tradition from AIX (which Apple based their PowerPC support on originally), both static and dynamic libraries are often stored in .a files. In fact, all the operating system functions are accessed via shared libraries (such as
InterfaceLib
, converted tolibInterfaceLib.a
by theMakeImport
tool).On 68K, Retro68 currently has no support for Shared Libraries.
Apple introduced support twice, once via the 'Apple Shared Library Manage…