On 12/13/2009 06:00 PM, Jun Koi wrote:
I found that in tcg/tcg.h, we have following definitions:
typedef int TCGv_i32;
typedef int TCGv_i64;
Is that correct? Why do we have the same definition for 64bit and 32
bit types? Doesnt TCGv_i64 suppose to be 64 bit?
Look higher up in the DEBUG_TCGV section and you'll find
typedef struct
{
int i32;
} TCGv_i32;
typedef struct
{
int i64;
} TCGv_i64;
which are separate types for type checking purposes.
Both are "int" because at the TCG level these are register numbers.
They are separate types because they indicate 32-bit or 64-bit
quantities in the compiled code.
r~