The .s format isn't final, but some things it appears to just take the "normal" assembly syntax notation for, like how it writes globals. Currently s2wasm is very hackish there, as I'm not that familiar with what those things mean in typical assembly, so it just ignores things like .lcomm, .section. etc., which I'm not sure matter.
The code is in parseType, parseObject. Someone familiar with assembly formats could probably easily make it more reasonable.
The
.sformat isn't final, but some things it appears to just take the "normal" assembly syntax notation for, like how it writes globals. Currently s2wasm is very hackish there, as I'm not that familiar with what those things mean in typical assembly, so it just ignores things like.lcomm,.section. etc., which I'm not sure matter.The code is in
parseType, parseObject. Someone familiar with assembly formats could probably easily make it more reasonable.