> BTW: speaking of JIT optimizations, here's a few questions:
>
> - who's up for guessing the best x86 asm for this:
> int foo (int i) { return (i == 0) ? 3 : 7; }
> <hint> no branches </hint>
gcc -O3 guessed:
xorl %edx, %edx
cmpl $0, 8(%ebp)
setne %dl
leal 3(,%edx,4), %eax
Miguel