automatically set the #[main] fn as the Module start method
differentiated 2 of the 3 kinds of function calls
added the print_i32 extern, and translated it to one Import and CallImport(s)
added wasm::print_i32() to the examples with the expected results
added i32 ConstVals and switched the fibonacci example from isizes to i32s, and
switched from using #[start] to #[main] so it's easier to test with the interpreter.
You can now simply run this example with binaryen-shell to have a better testing
experience, like described in #15.
added an iterative version of fibonacci making sure it's simple to
not require iterators, PartialOrd, etc, and it worked without using wasms'
loops nor changing the backend, which was surprising, but to be expected from MIR :) (& also made me wonder how do other languages target wasm, whether they use "native" loop blocks or do it with jmps)
removed a bogus leftover comment
yes I know I could have merged this PR myself (thanks for the collaboration invitation @brson), but just in case you guys wanted to have a look (also: I suck at git :)
yes I know I could have merged this PR myself (thanks for the collaboration invitation @brson), but just in case you guys wanted to have a look (also: I suck at git :)