If memory serves me right, Leopold Toetsch wrote: > Please have a look at include/parrot/datatypes.h. I hope that there are > all types you'll need.
It seems so ... but I'm not really certain about Float data types ... > Can you specify, what opcodes you would need? Hmm... I guess I can only quote the ECMA spec here ... conv.i1 Convert to int8, pushing int32 on stack conv.i2 Convert to int16, pushing int32 on stack conv.i4 Convert to int32, pushing int32 on stack conv.i8 Convert to int64, pushing int64 on stack conv.r4 Convert to float32, pushing F on stack conv.r8 Convert to float64, pushing F on stack conv.u1 Convert to unsigned int8, pushing int32 on stack conv.u2 Convert to unsigned int16, pushing int32 on stack conv.u4 Convert to unsigned int32, pushing int32 on stack conv.u8 Convert to unsigned int64, pushing int64 on stack conv.i Convert to native int, pushing native int on stack conv.u Convert to native unsigned int, pushing native int on stack Thanks to the polymorphic nature of the opcodes the "from" entry is in another table in ECMA .... But I guess conversions of lower integer data types to I registers and back would be a starting point ? Gopal -- The difference between insanity and genius is measured by success