One way to handle this is to look at the format string and only perform optimisations if you can fully understand the string. The advantage of this is that you don't have to fully implement printf(), it would probably give you 90% of the optimisations available if you just recognise %d, %c, and %s, without modifiers. -- - Geoffrey Keating <geoffk@cygnus.com>