Comments (6)
I have a patch for this, just waiting on automatic tests to finish before I push.
With the patch this .ll file will compile, however, it has i36 in it (36-bit integers). This will probably cause problems, since I have tested primarily on 32 bit systems, and the code relies on JS bit operations in some cases, which are 32-bit.
Perhaps the original code has a compilation #define that can tell it not to use 36-bit numbers, which are not platform independent?
from emscripten.
Thanks for creating the patch.
I am struggling to find where the code uses the 36bit numbers, sadly it doesn't contain a define to switch them off so I will have to find the problems manually, is there anything I could search for in the source which could make this easier?
I found that using the compiler option: "-I/home/name/Dev/emscripten/tests/libcxx/include" increased the number of i36 in the .ll file, does that mean some of them are in the c++ library?
from emscripten.
Fixed in acaee42
from emscripten.
It's possible the C++ library is responsible for some, yeah.
What OS are you on?
from emscripten.
My OS is Ubuntu 11.04 (through a virtual machine).
The patch works great and produces the javascript, so I guess my next step is trying to find out how to compile a stdc++ lib along with the game in order to remove errors such as:
ReferenceError: __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj is not defined
from emscripten.
Basically you would compile a libc++ just like any other big project. The wiki has a page on compiling projects. See also tests/runner.py which has examples of building projects (bullet, openjpeg, zlib).
from emscripten.
Related Issues (20)
- ASYNCIFY, EXIT_RUNTIME and std::process::exit() HOT 2
- JS Atomics.add is failed when Allocated Memory is over than 2G despite of declaration of MAXIMUM_MEMORY=4G HOT 1
- --pre-js/--post-js leak local path information (potentially security-relevant) in their output HOT 2
- Could NOT find ZLIB HOT 3
- Uncaught ReferenceError error in abort (preamble.js) when WebAssembly is not available HOT 2
- longjmp(..., 0) seems broken HOT 4
- Side module symbols are not exported on module creation HOT 2
- Should we map `-ffast-math` to `wasm-opt --fast-math`? HOT 2
- Websocket Support with -sMEMORY64
- emscons IndexError: list index out of range HOT 1
- WebSocket onmessage error with wasm64
- Bug: undefined exported symbol when symbols file contain unused symbols HOT 4
- Did 3.1.56 get mis-tagged? HOT 2
- Link time slowdown in an optimized build HOT 10
- Memory corruption/segfault with MINIMAL_RUNTIME + std::thread + thread_local variables
- [request] standalone version of file_packager.py HOT 17
- Update llvm libraries to 18.1.1 HOT 4
- ubsan.test_longjmp_zero is failing HOT 2
- Using UTF8ToString with Wasm64 HOT 4
- loading-workers error HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from emscripten.