--- In [email protected], Luciano Cattani <xcianox2...@...> wrote:
>
> I did it. The GCC compiler behaves exactly as Gerardo wrote:
(do you mean Peter?)
> // printf("%d\n", i2)
> // this is the most interesting part
> // when we have to printf() 'i2', the compiler does not push
> // the content of the memory area 'i2' on the stack
> // Instead, an immediate operand
> // of value 2 is pushed on the stack as the second parameter to printf()
> // thus obtaining the 'const' behaviour
> movl $2, 4(%esp)
> movl $.LC0, (%esp)
> call printf
Thanks for doing that Luciano.
John