On 12/10/05, Roger Browne <[EMAIL PROTECTED]> wrote: > > Does your compiled code use PMC Integers or native ints? (I'm using > PMCs). > > Regards, > Roger Browne
My goal is to have the compiled code as simple as possible, so the compiler uses native ints and strings if it can. I also upgraded the generated code for 'if' and 'elseif' statements to optimize to the 'ne', 'eq', 'lt', and 'gt' opcodes if possible (instead of calling a function to compare two values, storing the result, and testing it for trueness). I made a similar change where addition/subtraction is done as well (instead of calling a function to add two values and re-storing the result, it optimizes to the 'inc' and 'dec' opcodes). You can see the generated PIR here: http://theguildforge.com/ack.pir