emscripten-core / emscripten

Emscripten: An LLVM-to-WebAssembly Compiler
Other
25.73k stars 3.3k forks source link

unknown argument: '-mwasm64' #19834

Open yangfangfang1204 opened 1 year ago

yangfangfang1204 commented 1 year ago

emcc hello.cpp -o hello.html -mwasm64 there is a error : unknown argument: '-mwasm64'

emcc -v there is Target: wasm32-unknown-emscripten

sbc100 commented 1 year ago

We use -sMEMORY64 for this

yangfangfang1204 commented 1 year ago

and i add -sMEMORY64 , there is a warning: -sMEMORY64 is still experimental. Many features may not work. so what features can't be used ?

And i run the hello.html in chromeV114-64bit , chrome return the error: invalid memory limits flags 0x5(enable via --experimental-wasm-memory64) ? so memory64 is still experimental , if i want to use it , What do I need to pay attention to ?