Re: [cc65] Optimization for size

From: Groepaz <groepaz1gmx.net>
Date: 2006-04-05 09:46:25
On Wednesday 05 April 2006 09:38, Ullrich von Bassewitz wrote:
> On Wed, Apr 05, 2006 at 05:57:56AM +0200, Groepaz wrote:
> > that sounds pretty extreme... are you sure you had the compiler
> > optimization enabled? (also, did you check
> > ftp://ftp.musoftware.de/pub/groepaz/opt65.c ?)
>
> I could not test the thing because of flex constraints ("input rules are
> too complicated (>= 32000 NFA states)"), but I had a look at it. What
> Andrew does is to replace common blocks by subroutines. That works well
> with larger programs. The flex rules look like they are targeted to a
> specific program, so other programs won't benefit as much. Which is not a
> problem if you generate new rules specific for a program.

i'm just wondering because i did a simelar thing before (using handcrafted 
rules though) and the result wasnt quite THAT good.

anyway, we are have been talking on irc about it....running his pattern 
generator on contiki (and maybe some other large programs) and also combining 
those two optimization methods could be quite interisting. (especially for 
huge programs like contiki which really suffer from memory shortage)

-- 

http://www.hitmen-console.org
http://www.gc-linux.org/docs/yagcd.html
http://www.pokefinder.org
http://ftp.pokefinder.org

Geben Sie sich nicht so viel Muehe mit der Erziehung, die Kinder machen Ihnen 
sowieso alles nach.

----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Wed Apr 5 09:46:34 2006

This archive was generated by hypermail 2.1.8 : 2006-04-05 09:46:36 CEST