Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!caip!brl-adm!brl-smoke!smoke!rgenter@BBN-LABS-B.ARPA From: rgenter@BBN-LABS-B.ARPA (Rick Genter) Newsgroups: net.lang.c Subject: Re: printf() code size using Astartup.obj and AMIGA.LIB only Message-ID: <2054@brl-smoke.ARPA> Date: Wed, 9-Jul-86 13:30:04 EDT Article-I.D.: brl-smok.2054 Posted: Wed Jul 9 13:30:04 1986 Date-Received: Thu, 10-Jul-86 05:11:20 EDT Sender: news@brl-smoke.ARPA Lines: 15 One point about your posting: You mention that the compiler should generate only one extend instruction. The MC68000 does not have an instruction to extend from byte to long - you have to extend byte to word, then extend word to long. Of course, it's much better if it just generates TST.B (if comparing against zero), or, as you pointed out, uses the condition codes set from the MOV.B instruction which loaded the value in the first place. -------- Rick Genter BBN Laboratories Inc. (617) 497-3848 10 Moulton St. 6/512 rgenter@labs-b.bbn.COM (Internet new) Cambridge, MA 02238 rgenter@bbn-labs-b.ARPA (Internet old) linus!rgenter%BBN-LABS-B.ARPA (UUCP)