Re: [cc65] optimizer?

Date view Thread view Subject view

From: Ullrich von Bassewitz (
Date: 2001-06-24 19:09:58


On Sun, Jun 24, 2001 at 05:55:45PM +0200, groepaz wrote:
> just a quick question.... when i am using the assembler directly,
> writing hand-coded assembler, am i able to use the peephole-optimizer
> of the compiler ?
> i am asking because if not, i am going to convert the standalone
> optimizer i was using before to support ca65's syntax ;=)

The optimizer is built into the compiler and it makes several assumptions
about the generated code, so it may not be used for generic assembler code. On
the other side, I cannot remember having a need to run an optimizer over hand
written assembler code. 
As far as I understand it, the whole thing with hand written assembler code
is, that it is optimized by the programmer.

What would you expect such an optimizer to do? Can give me an example from
your standalone optimizer? Maybe I need such a thing and don't know it:-)



Ullrich von Bassewitz                        
To unsubscribe from the list send mail to 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