/*1This is "Hello World" for CoWasm.23To build and run under WaCalc:45make run-hello.wasm67The resulting program is VERY SMALL (235 bytes):89~/cowasm/packages/kernel$ ls -l build/test/hello.wasm10-rwxr-xr-x 1 wstein staff 235 Oct 30 08:02 build/test/hello.wasm1112~/cowasm/packages/kernel$ wasm2wat build/test/hello.wasm13(module14(type (;0;) (func (param i32) (result i32)))15(type (;1;) (func))16(type (;2;) (func (param i32 i32) (result i32)))17(import "env" "memory" (memory (;0;) 1))18(import "env" "__memory_base" (global (;0;) i32))19(import "env" "__table_base" (global (;1;) i32))20(import "env" "puts" (func (;0;) (type 0)))21(func (;1;) (type 1))22(func (;2;) (type 1))23(func (;3;) (type 2) (param i32 i32) (result i32)24global.get 025i32.const 026i32.add27call 028drop29i32.const 0)30(export "__wasm_call_ctors" (func 1))31(export "__wasm_apply_data_relocs" (func 2))32(export "__main_argc_argv" (func 3))33(data (;0;) (global.get 0) "Hello from CoWasm!\00"))3435*/3637#include <stdio.h>3839int main(int argc, char** argv) {40printf("Hello from CoWasm!\n");41return 0;42}434445