Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!decvax!decwrl!pyramid!pesnta!amd!amdcad!lll-crg!caip!cbmvax!randy From: randy@cbmvax.UUCP Newsgroups: net.micro.amiga Subject: Re: Question about Alink Message-ID: <259@cbmvax.cbmvax.cbm.UUCP> Date: Tue, 20-May-86 09:21:02 EDT Article-I.D.: cbmvax.259 Posted: Tue May 20 09:21:02 1986 Date-Received: Wed, 21-May-86 06:12:21 EDT References: <928@h-sc2.UUCP> Reply-To: randy@cbmvax.UUCP (Randy Weiner) Distribution: na Organization: Commodore Technology, West Chester, PA Lines: 33 In article <928@h-sc2.UUCP> wen_2@h-sc2.UUCP writes: >Is it possible for those of us outside of West Chester and Los Gatos to use >Alink to produce short executables? For example, is it possible to link a >"hello, world" to a less-than-10K executable, and how is this done? I know >it IS done, (look in c: for examples) but can I do it, too? > The problem with "huge" executables is a result of using the Lattice library, LC.LIB. These are not the most efficiently coded routines by any means. One possible solution is to not use LC.LIB and instead rely on Amiga.lib to provide the needed functionality. Amiga.lib contains a partial implementation of the typical 'C' functions e.g. printf. But -- these are not complete implementations!! And, there is no documentation for these functions. So, the only way to know for sure is to try it. For the most part, unless you are trying to write , or port, a 'portable' program you should have no trouble. Remember to use Astartup.obj instead of Lstartup.obj. Following this advice, the example program "hello.c" can be reduced to about 4k bytes (I think). It is the Lattice implementation of printf that is a real killer! -- + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Randy Weiner -- Commodore Business Machines <> uucp: {ihnp4|seismo|caip}!cbmvax!randy arpa: cbmvax!randy@seismo (or) randy@cbmvax.UUCP@{seismo | harvard} TEL: 215-431-9180