View Single Post
Old 20 April 2015, 20:33   #31
cla
dev
 
cla's Avatar
 
Join Date: Aug 2014
Location: Copenhagen
Age: 48
Posts: 65
Send a message via ICQ to cla
Quote:
Originally Posted by phx View Post
Linking of vbccm68k and gcc-m68k object files is theoretically possible. AFAIK the ABI is identical (I seem to remember it was ok with gcc 2.95.x). Maybe newer gcc ports no longer follow the AmigaOS ABI, but return pointers in a0 or double in d0/d1, as defined by the M68k System V.4 ABI, but I didn't check that. d0/d1, a0/a1 and fp0/fp1 are scratch registers in both. Arguments are passed on the stack. Gcc precedes function names by an underscore in a.out format, like Amiga compilers do in hunk format.
Only problem is the different naming scheme of support functions (like 64-bit arithmetics or soft float). You would have to write stub-functions to make that link.
Im still struggling a bit with all this (de)mangling and linking stuff. Having a Delphi and .NET background I am surprised how difficult it is to get it to work.
cla is offline  
 
Page generated in 0.08332 seconds with 11 queries