Re: Inline block moves

Bruce.Hoult@actrix.gen.nz (Bruce Hoult)
Tue, 12 Nov 1991 21:35:22 GMT

          From comp.compilers

Related articles
Inline block moves disque@unx.sas.com (1991-11-11)
Re: Inline block moves mwm@pa.dec.comMeyer) (1991-11-11)
Inline block moves jfc@ATHENA.MIT.EDU (John Carr) (1991-11-11)
Inline block moves jfc@ATHENA.MIT.EDU (John Carr) (1991-11-12)
Re: Inline block moves christer@cs.umu.se (1991-11-12)
Re: Inline block moves Bruce.Hoult@actrix.gen.nz (1991-11-12)
Re: Inline block moves meissner@osf.org (1991-11-15)
| List of all articles for this month |

Newsgroups: comp.compilers
From: Bruce.Hoult@actrix.gen.nz (Bruce Hoult)
Keywords: assembler, optimize
Organization: Actrix Information Exchange, Wellington, New Zealand
References: 91-11-035
Date: Tue, 12 Nov 1991 21:35:22 GMT

An interesting article.


I've got one very minor quibble about the 68000 code, and I only mention
it because the comments indicate that it was supposed to be "clever"
code:


> MOVEQ.L #1,D1 These 2 instructions replace
> ASR.L #5,D1 a MOVE.L #32,D1 and save 2 bytes


Why not save another two bytes by just using the obvious...


> MOVEQ.L #32,D1


... since MOVEQ allows an 8-bit constant (as opposed to ADDQ, SUBQ which
allow only 3 bits).


--
Bruce.Hoult@bbs.actrix.gen.nz Twisted pair: +64 4 477 2116
BIX: brucehoult Last Resort: PO Box 4145 Wellington, NZ
--


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.