Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!philabs!cmcl2!seismo!gatech!akgua!whuxlm!whuxl!houxm!ihnp4!inuxc!pur-ee!uiucdcs!uicsl!hr From: hr@uicsl.UUCP Newsgroups: net.micro.amiga Subject: Re: Question about Alink Message-ID: <151400033@uicsl> Date: Thu, 15-May-86 12:39:00 EDT Article-I.D.: uicsl.151400033 Posted: Thu May 15 12:39:00 1986 Date-Received: Mon, 19-May-86 00:32:51 EDT References: <928@h-sc2.UUCP> Lines: 41 Nf-ID: #R:h-sc2.UUCP:928:uicsl:151400033:000:921 Nf-From: uicsl.UUCP!hr May 15 11:39:00 1986 RE: "Is it possible for those of us outside of West Chester and Los Gatos to use Alink to produce short executables?" Yes. Search your Lattice C documentation. Basically, you should not use any "Level 1 I/O routines". I remove as many Lattice routines as I can, turn off stack checking, and adjust the Alink args. Thus, main() { printf("Hello World\n"); exit(0); } would become: Putstr(str) char *str; { Write(Output(),str,strlen(str)); } main() { Putstr("Hello World\n"); /* I may write a Printf someday */ Exit(0); } LC2 would be given the -v switch. Alink would get Astartup.obj instead of Lstartup.obj. The library order is reversed (Amiga.lib+Lattice.lib). The result should be under 5KB. Check the manuals for more information and corrections to the above. (Unfortunately, some of the information may be in addenda not included with the manual). ---- harold ravlin {ihnp4,pur-ee}!uiucdcs!uicsl!hr