If memory serves me right, Leopold Toetsch wrote:
> 
> > Hmm... I guess I can only quote the ECMA spec here ... 
> > conv.i1             Convert to int8, pushing int32 on stack
> 
> 
> truncate to [-128..127]? And why the push?

IL is a fully stack language ... pop int32, trunc, push int8 ...
Yes, truncate is the required operation . I guess sign-extension
is also present for up conversion ...

> What is the behaviour on overflow?

*.ovf suffixed instructions like (conv.i1.ovf) exist seperately ..
but that could be remedied by an explicit check ? ...

> Datatypes bigger then INTVAL would need a PMC as storage.

Ok. Otherwise this would complicate register handling ? (jvm allocates 
2 adjacent local variables for a long and double .. *yow*)

Gopal
-- 
The difference between insanity and genius is measured by success

Reply via email to