brson / miri

An experimental compiler from Rust to WebAssembly (inactive - do not use)
Apache License 2.0
209 stars 15 forks source link

Calling Convention #30

Open eholk opened 8 years ago

eholk commented 8 years ago

How do we want the calling convention to work?

eddyb commented 8 years ago

Pass anything that fits in an immediate as an immediate, and everything else as a pointer to the value.

One choice you can make here is passing larger values, like pairs of immediates, as multiple arguments.