Coder Social home page Coder Social logo

Comments (6)

kripken avatar kripken commented on May 14, 2024

The problem is the "module asm" lines, which are inline assembly. Emscripten can't translate CPU-specific code like that.

The source code you are building might have an option to not use inline assembly.

from emscripten.

 avatar commented on May 14, 2024

Using e.g. dragonegg this is done to all bc files. If you know a way how to prevent this embedding it would surely be appreciated.

from emscripten.

kripken avatar kripken commented on May 14, 2024

What command are you using to compile with dragonegg? Might be related to optimization somehow.

Try to compile with emmaken.py with dragonegg, that might help since it will then use the emscripten headers and compile flags, something like

EMMAKEN_COMPILER=dragonegg python emmaken.py myfile.cpp -o myfile.o

from emscripten.

 avatar commented on May 14, 2024

I cannot use emmaken since I'm using SCons and doing a lot of configuring in SCons.

from emscripten.

kripken avatar kripken commented on May 14, 2024

I believe you should be able to tell SCons to use a different compiler than the platform's default. Looks like this has the right syntax:

http://stackoverflow.com/questions/2944251/changing-default-compiler-in-linux-using-scons

So,

env = Environment()
env.Replace(CC = "PATH-TO-EMMAKEN")

from emscripten.

 avatar commented on May 14, 2024

Yeah I know and I do this quite extensively. I have already a python script in place so I'll have to see how I can access emmaken.py without making the whole thing any slower than it already is.
Which means I have to have a good look into emmaken.py, which has currently very low priority since I try to get the whole mess compiling again, first.

from emscripten.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.