This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

question about gcc assembly


Hi

I've compiled a short program with two different gcc versions
(3.2.3 and 3.4.3) but it seems that the produced assembly code
isn't the same.

In fact 3.4.3 produce a more important code. For example when
gcc 3.2.3 produces :
movl	$0x405c28f6, -4(%ebp)

gcc 3.4.3 may use:
movl	$0x405c28f6, %eax
movl	%eax, -4(%ebp)

I wonder why it now uses %eax register ? And is there any way
to prevent this, in order to have similar assembly code with
both gcc versions ? Maybe some kind of option ?

Thanks for your answers.

Coline

PS Excuse my poor english, but it isn't my native langage.

Accédez au courrier électronique de La Poste : www.laposte.net
3615 LAPOSTENET (0,34 ?/mn)



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]