WASM_X86: Initial support for print_str - #1265
Conversation
|
Why is it |
|
In the $ lpython examples/expr2.py --backend x86 && ./a.out
code generation error: Subroutine code not generated for 'main0'
Note: if any of the above error or warning messages are not clear or are lacking
context please report it to us (we consider that a bug that needs to be fixed). |
|
Please generate functions after performing topological sort on them. Here's how it is done in C backend, lpython/src/libasr/codegen/asr_to_c.cpp Lines 690 to 692 in d4a6d53 lpython/src/libasr/codegen/asr_to_c.cpp Lines 727 to 737 in d4a6d53 |
Thank you for sharing. This would be very helpful. I think we can also use it in the |
There were functions like |
certik
left a comment
There was a problem hiding this comment.
I think this is fine for now.
2baa272 to
c5c9f57
Compare
|
I rebased this on top of latest main. I am adding it to auto-merge as it seems to be approved. |
It seems to work, but the approach seems hackish.
Example:
Output:
Note: Currently only single parameter is supported for
printby bothx86andwasm_x86backends.