Is it okay to create a runtime wat function rather than doing it inline. When implementing subset 02 we discussed to have it inline. I am guessing that is as an optimization. But if I create a function then the wasm-opt tool is going to inline it anyway. That would be more work to the optimizer but the code would be clean. Shall I make it as a function
The code for checking overflows is currently added inline. For example checking overflows in addition,
This is currently generated using functions in the
print.wasm
module with a code which looks ugly https://github.com/poorna2152/nballerina/blob/wback_subset07/compiler/modules/wback/number.bal#L80-L140.Is it okay to create a runtime wat function rather than doing it inline. When implementing subset 02 we discussed to have it inline. I am guessing that is as an optimization. But if I create a function then the
wasm-opt
tool is going to inline it anyway. That would be more work to the optimizer but the code would be clean. Shall I make it as a function