Impact of native compilation

Pascal Brisset pascal.brisset@REDACTED
Fri Sep 6 19:51:58 CEST 2002


 > We were wondering why the result was different. Is there many more operations implied by Erlang ?  

More important is that there are much less operations than you
think in the C version: "g++ -O3" optimizes the unused code out.

main:
.LFB1:
	pushl	%ebp
.LCFI0:
	movl	%esp, %ebp
.LCFI1:
	movl	$99999999, %eax
	.p2align 2
.L6:
	decl	%eax
	jns	.L6
	xorl	%eax, %eax
	popl	%ebp
	ret

-- Pascal Brisset  [pascal.brisset@REDACTED] --
-- Cellicium | 157 r des Blains | F-92220 Bagneux --




More information about the erlang-questions mailing list