RE: [cc65] optimizer?

Date view Thread view Subject view

From: shubel, paul (shubel_paul_at_emc.com)
Date: 2001-06-25 20:22:49


>The kinds of "optimizations" I have used with hand-coded assembler are
>those of selecting any of several equivalent instructions which take
>less space or use fewer bytes. An example of this is automatically
>selecting either "long" or "short" form jumps automatically, depending
>on how far away the destination is from the jump.

Hi Everyone,

I view this matter a little bit differently.

Instead I would design a super assembler (I think Atari did this) where you
put in what you want to do
, like shift so many times, then the super assembler spits out the optimal
assembly language for the purpose.
I think that this would be easier to implement than having an "optimizer"
reverse engineer your assembly code.
Microsoft MASM does this for the 8086.  They called it their "smart"
assembler.


Cheers,


Paul
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo_at_musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.


Date view Thread view Subject view

This archive was generated by hypermail 2.1.3 : 2001-12-14 22:05:40 CET