dotgnu-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [DotGNU]Signed vs Unsigned Int32s in assembly output


From: Rhys Weatherley
Subject: Re: [DotGNU]Signed vs Unsigned Int32s in assembly output
Date: Wed, 16 Oct 2002 07:09:57 +1000

Gopal V wrote:

> Int32.MinValue was represented as ... "2147483648" when
> compiled "cscc -S minvalue.cs".
> 
> It is actually -2147483648.. and the compiled version
> when disassembled gave the correct value ..

It's just a quirk of the code generator.  The same instruction
is used for loading signed and unsigned values onto the stack.
The bit pattern is what is important.

Cheers,

Rhys.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]