Amiga.org
Operating System Specific Discussions => Amiga OS => Amiga OS -- Development => Topic started by: Minuous on July 06, 2011, 09:51:23 AM
-
Using GCC compiler on OS4, what kind of prototypes would one use to call a function in a 68K-only library (eg. boards.library)?
I get this from the compiler:
ignoring #pragma libcall BoardsBase
so how am I supposed to define it? Many thanks.
-
You cannot call functions of a 68k library directly from a PPC program. You have to create a PPC stub for the 68k library.
http://thomas-rapp.homepage.t-online.de/ppclib.html
For the PPC program it then appears as if the library was PPC native.
-
OK, thanks.