Amiga.org

Operating System Specific Discussions => Amiga OS => Amiga OS -- Development => Topic started by: Minuous on July 06, 2011, 09:51:23 AM

Title: Calling 68K library from OS4 program
Post 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.
Title: Re: Calling 68K library from OS4 program
Post by: Thomas on July 06, 2011, 10:46:49 AM
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.
Title: Re: Calling 68K library from OS4 program
Post by: Minuous on July 07, 2011, 03:28:57 AM
OK, thanks.