Skip to main content
Filter by
Sorted by
Tagged with
2 votes
1 answer
410 views

I'm using emscripten to generate a file a.wasm.js that contains functions in C++ for encryption. The webassembly functions take in and return C-strings that hold JSON data. I want to wrap these asm.js ...
user491880's user avatar
  • 4,887
6 votes
1 answer
2k views

(1) I heard WebAssembly's safety by providing a linear memory. I wonder what does this linear memory contain? Does the wasm stack and heap locate in this memory space? If yes, I think the stack of ...
yeehaw's user avatar
  • 319
3 votes
0 answers
481 views

I'm trying to write some performance intensive js code so I figured I'd give writing asm.js a try. However whenever I try to instantiate my module with a heap I get the following error in both Node.js ...
Garrett Johnson's user avatar
1 vote
1 answer
60 views

According to the spec, the type "int" in ASM.js does not have signedness. The int type is the type of 32-bit integers where the signedness is not known. In asm.js, the type of a variable ...
Jason Yu's user avatar
  • 2,098
2 votes
1 answer
6k views

I am practicing WebAssembly at https://github.com/mikerourke/learn-webassembly. I tried to check the result of "without-glue.html", the last step of "chapter-05-create-load-module"....
msm082919's user avatar
  • 707
1 vote
1 answer
3k views

I'm generating asm.js from a Rust file like so: rustc demo.rs --target asmjs-unknown-emscripten -C opt-level=0 -C link-arg="-s MINIMAL_RUNTIME=1" -C link-arg="-s ENVIRONMENT=web" -C link-arg="-s ...
Sora2455's user avatar
  • 884
2 votes
1 answer
218 views

Here is prime numbers generation algorithm, one with "use asm" and another one (similar) without. In end of live snippet there stats, looks like asm.js runs 4 times slower than pure js, why? asm.js ...
sonnenhaft's user avatar
  • 1,647
-1 votes
1 answer
584 views

I complied faac.c and opus.c to asm.js. When I run asm.js in IE11, it throws an error message: this is a legacy browser build with legacy_vm_support I do not know whether IE11 support asm.js and how ...
xuspring's user avatar
2 votes
1 answer
664 views

TLDR When linking against a static compiled library version of Box2D compilation fails but when including the actual .o files of the Box2D compilation, it works. I am trying to compile a c++ program ...
avoid3d's user avatar
  • 620
4 votes
1 answer
494 views

When using asm.js code some browsers emit a compilation message. This one: Successfully compiled asm.js code (loaded from cache in 201ms) Is there a way to suppress this message?
Nelson Teixeira's user avatar
3 votes
0 answers
897 views

I want to know how to properly delete the memory of std::vector & std:: map allocated in c++ code. I am sharing my code here # include <vector> # include <stdio.h> # include <...
Srinivas's user avatar
  • 401
1 vote
0 answers
31 views

I have a 3rd party JS library that utilizes a generated *.asm.js file. That file and, the JS glue code, and HTML work fine when started up locally through python -m SimpleHTTPServer 8000. I'd like ...
foamroll's user avatar
  • 813
2 votes
1 answer
596 views

I'm trying to use emscripten and asm.js in order to speed up my Javascript code. I need to get data from an Int32Array into my compiled C function. According to this Github site I can allocate a ...
David Zhao Akeley's user avatar
7 votes
1 answer
1k views

I have a rust project I am compiling to webasm per http://asquera.de/blog/2017-04-10/the-path-to-rust-on-the-web/ Project compiles. When I run it in Chrome Canary, it runs out of memory and gives me ...
imichaelmiers's user avatar
16 votes
1 answer
951 views

Imagine I have a asmjs script but before running the script, I'd like to test and see if the browser supports asm.js or not. If it is false, display a message indicating that the browser is old or ...
Afshin Mehrabani's user avatar
1 vote
1 answer
401 views

My aim to to find out the thread ids and process ids of the thread and the process that are running my javascript code. I could find no functions that could provide me this so I use the basic C code ...
vaibhav.pnd's user avatar
0 votes
1 answer
144 views

(N.B. I'm still confused about how asm.js works and what types of software it can "auto convert", and I'm also still confused about a lot of terminology along the stack of auto conversion from ...
ina's user avatar
  • 19.6k
2 votes
0 answers
190 views

I would like to run a a benchmarkjs test on a program that is cross compiled from emscripten. Is there a way to disable the asm.js optimizations to run it with and without asm?
brianxautumn's user avatar
  • 1,172
5 votes
4 answers
2k views

I'm curious if it's possible to have emscripten build a binary without libc. If I have simple.c: int add1(int x) { return x + 1; } And I don't want to include any of libc, is that possible? My ...
James Gilles's user avatar
6 votes
1 answer
2k views

I've got a Rust library with the following usual structure: Cargo.toml src |--lib.rs .cargo |--config (specifies target=asmjs-unknown-emscripten) target |...... When I do cargo build, I get a new ...
user1935361's user avatar
1 vote
2 answers
856 views

First, check my knowledge c/c++ code >> compile(emscripten [emcc]) >> asm.js code I can get c/c++ code to asm.js code, is it right? asm.js code >> compile(binaryen [asm2wasm]) >...
gyeongseok seo's user avatar
5 votes
0 answers
756 views

I'm following along with the call from JavaScript tutorial. Instead of using node, I'm calling directly from a web browser: hello_world/index.html <!DOCTYPE html> <html lang="en"> <...
goo's user avatar
  • 2,280
0 votes
1 answer
369 views

Sorry for the basic question here. I'm trying to wrap my head around Emscripten, ASM.js, and compiling lower level languages to javascript. Here is what I don't understand. You can do things in a ...
Dominic P's user avatar
  • 2,422
2 votes
1 answer
871 views

As I understand Emscripten worker model, it does not support a shared state. However, I can share global variables between the SDL audio callback and my mainloop, which if I understand this correctly, ...
Viktor Sehr's user avatar
  • 13.2k
1 vote
0 answers
194 views

I am experimenting with using Emscripten generated code in my Javascript application. The results are pretty disappointing performance-wize. I am seeing 40x slower on Chrome 49.0.2623.110 (compiling ...
griffin2000's user avatar