Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!ukc!warwick!estdwha From: estdwha@warwick.ac.uk (CrisP) Newsgroups: comp.sys.amiga.programmer Subject: Re: ARP and DICE - How to link?? Message-ID: Date: 2 Mar 91 07:12:17 GMT References: <1991Feb25.121623.16551@uni-paderborn.de> Sender: news@warwick.ac.uk (Network news) Organization: Computing Services, Warwick University, UK Lines: 55 Nntp-Posting-Host: lily In article stephane@Chucla.CAM.ORG (Stephane Laroche) writes: >In article <1991Feb25.121623.16551@uni-paderborn.de> nick@uni-paderborn.de (Martin Koch) writes: >>Hello Amigos, >> >>I would like to use the ArpFunctions in my C-Program. >>I use the DICE-Compiler from Matt Dillon. But i am not >>able, to link the a.lib (or also the arp.lib)(both link time >>libraries) to the executable. >>They are both in the Manxformat. Has anyone solved the Problem? > >You need to create a new link library that contains the glue code >for the ARP function. I've started working on this but I didn't >have time to finish... yet. Look at the lattice glue code from >the ARP distribution and AztecArp from Olaf Barthel which is on >Fish Disk #436. > >For example, to use the ARP function Puts, assemble the following >code (taken from AztecArp) and link it with your C program: > >_Puts: > pea (a6) > move.l _ArpBase,a6 > move.l 8(sp),a1 > jsr -240(a6) > move.l (sp)+,a6 > rts > >Someone should really make a complete DICE-compatible arp.lib for >us poor folks who are still using AmigaDos 1.3. I know I would >if I had the time :-) > With Dice2.06 there is a little program call fdtolib that can create the such a .lib file from the .fd file. I have already created myself a amigs.lib from .fd files. And am working an arp.lib. But I have forseen a problem with the PrintF() and simular functions. In the Arp library you pass the mutiple undefined parameters as a pointer to an array. It would be nice to pass them as seperate parameters. I know that fdtolib creates the glue code needed from the .fd file. I know that it then uses das to assemble it. But what I can't work out is what it does from there. ~ CrisP. >> //\ Martin Koch --- email to: nick@uni-paderborn.de > >-- > Stephane Laroche | Email: stephane@Chucla.CAM.ORG > +1 514 277-8605 | Montreal, Que., Canada -- -------------------------------------------------------------------- crisp@uk.ac.warwick.cs | I didn't do it. Nobody saw me do it. estdwha@uk.ac.warwick.cu | You can't prove anything. - Bart Simpson. --------------------------------------------------------------------