[Mono-devel-list] StringBuilder patch

Miguel de Icaza miguel at ximian.com
Mon Jan 12 16:01:41 EST 2004


> 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



More information about the Mono-devel-list mailing list