Welcome, Guest. Please login or register.

Author Topic: Calling 68K library from OS4 program  (Read 1880 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline MinuousTopic starter

Calling 68K library from OS4 program
« 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.
 

Online Thomas

Re: Calling 68K library from OS4 program
« Reply #1 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.

Offline MinuousTopic starter

Re: Calling 68K library from OS4 program
« Reply #2 on: July 07, 2011, 03:28:57 AM »
OK, thanks.
« Last Edit: July 07, 2011, 09:54:45 AM by Minuous »