printf() code size using Astartup.obj and AMIGA.LIB only

Rick Genter rgenter at BBN-LABS-B.ARPA
Thu Jul 10 03:30:04 AEST 1986


     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 at labs-b.bbn.COM  (Internet new)	Cambridge, MA   02238
rgenter at bbn-labs-b.ARPA (Internet old)	linus!rgenter%BBN-LABS-B.ARPA (UUCP)



More information about the Comp.lang.c mailing list