Home » Community » Coffee corner » About WebAssembly
Re: About WebAssembly [message #56209 is a reply to message #56206] |
Mon, 08 February 2021 23:00   |
Novo
Messages: 1430 Registered: December 2006
|
Ultimate Contributor |
|
|
mirek wrote on Mon, 08 February 2021 14:49Novo wrote on Mon, 08 February 2021 19:35AFAIK, WebAssembly requires all data to be aligned by at least the word size. This can be a problem ...
Even char? Like you cannot do char *s = ...; *s++?
Probably, you can do that. Last time I had to deal with compiling C++ to Web was, probably, ~5 years ago. And that was Emscripten.
The only thing I remember for sure I had to properly align unaligned data structures, otherwise we were getting runtime exceptions. Part of the code had to be disabled because of problems with data alignment.
This was ~FIVE years ago. Life has changed since that time. And we have WebAssembly in addition to Emscripten now.
Another thing: compilation with Emscripten wasn't a problem at all.
P.S. I personally would prefer to use Turtle because of security reasons. WebAssembly can be easily decompiled, and in case of Turtle the only thing people can steal is a picture in a Web-browser.
Regards,
Novo
|
|
|
Goto Forum:
Current Time: Mon Apr 28 19:43:54 CEST 2025
Total time taken to generate the page: 0.01096 seconds
|