Skip to content

Is this an error in readme #326

Answered by vnmakarov
iacore asked this question in Q&A
Discussion options

You must be logged in to vote

This is not an error. All integer variables are always 64-bit integers. Therefore you can not use smaller integer types in local.
Argument and return types are for function interface. Basically value of an argument described as i32 will be signed extended and stored in local 64-bit variable N.

May be such type system is not obvious but it is significantly simplifies the implementation without big performance impact. The impact is due to additional 32-bit to 64-bit extensions but many such extensions will be removed by the generator optimizations.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by iacore
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants