Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!decvax!bellcore!ulysses!allegra!mit-eddie!genrad!panda!husc6!harvard!caip!lll-crg!lll-lcc!pyramid!amiga!bruceb From: bruceb@amiga.UUCP (Bruce Barrett) Newsgroups: net.micro.amiga Subject: Re: Question about Alink Message-ID: <1176@amiga.amiga.UUCP> Date: Mon, 19-May-86 14:31:34 EDT Article-I.D.: amiga.1176 Posted: Mon May 19 14:31:34 1986 Date-Received: Tue, 20-May-86 02:45:52 EDT References: <928@h-sc2.UUCP> <247@cbmvax.cbmvax.cbm.UUCP> Reply-To: bruceb@hunter.UUCP (Bruce Barrett) Distribution: na Organization: Commodore-Amiga Inc., 983 University Ave #D, Los Gatos CA 95030 Lines: 20 In article <247@cbmvax.cbmvax.cbm.UUCP> higgin@cbmvax.UUCP (Paul Higginbottom) writes: >In article <928@h-sc2.UUCP> wen_2@h-sc2.UUCP writes: > >The programs written by Amiga were not linked using ALINK, nor were they >compiled under Lattice. Some are BCPL programs, and others are compiled >on Sun computers under another compiler. Not exactly correct Paul. Alink is the *only* linker we use. We use it for BCPL, C and assembly programs. What we do not generally use is the Lattice C libraries. For (most of) the CLI commands "we" use the BCPL libraries. If you, the developer can get away with undocumented and limited functions (as we can) you too can use the amiga.lib library for things like printf(). To do this: Link using "alink astartup.obj+foo.o LIB amiga.lib+lc.lib" (you still need lc.lib for things the Lattice compiler relies on.) Compile printf as: printf("%ld %ls %lx %;f\n", int, char, ...); Note the "l" is necessary. Hope this helps!! --Bruce Barrett