Welcome, Guest. Please
login
or
register
.
Forums
Forums
Board
Topic
Home
Today's Posts
Gallery
Login
Register
Amiga.org
»
Operating System Specific Discussions
»
Amiga OS
»
Amiga OS -- Development
»
Calling 68K library from OS4 program
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: Calling 68K library from OS4 program (Read 1880 times)
Description:
0 Members and 1 Guest are viewing this topic.
Minuous
Hero Member
Join Date: Jan 2003
Posts: 809
Thanked: 4 times
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.
Logged
Thomas
Hero Member
Join Date: Jun 2002
Posts: 3375
Country:
Thanked: 21 times
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.
Logged
Email:
thomas-rapp@web.de
Home:
thomas-rapp.homepage.t-online.de/
Minuous
Hero Member
Join Date: Jan 2003
Posts: 809
Thanked: 4 times
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
»
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
Amiga.org
»
Operating System Specific Discussions
»
Amiga OS
»
Amiga OS -- Development
»
Calling 68K library from OS4 program
There was an error while thanking
Thanking...