Assume that I am writing a compiler with an asm.js-backend. In order to generate the most efficient code, I'd like to know how the generated asm.js code is translated to machine code. Is there a way to dump the (x86-64 in my case) assembly generated by OdinMonkey with a SpiderMonkey build like here: https://developer.mozilla.org/en-US/docs/SpiderMonkey/Build_Documentation?
Optimize for asm.js in OdinMonkey
396 Views Asked by Marc At
1
There are 1 best solutions below
Related Questions in JAVASCRIPT
- Angular Show All When No Filter Is Supplied
- Why does a function show up as not defined
- I count the time the user takes to solve my quiz using Javascript but I want the same time displayed on another page
- Set "More" "Less" font size
- Using pagination on a table in AngularJS
- How to sort these using Javascript or Jquery Most effectively
- how to fill out the table with next values in array with one button
- State with different subviews
- Ajax jQuery firing multiple time display event for the same result
- Getting and passing MVC Model data to AngularJS controller
- Disable variable in eval
- javascript nested loops waiting for user input
- .hover() seems to overwrite .click()
- How to sort a multi-dimensional array by the second array in descending order?
- How do I find the fonts that are not loading in a CORS situation ( MoovWeb )?
Related Questions in ASSEMBLY
- (x64 Nasm) Writeline function on Linux
- Is the compiler Xcode uses to produce Assembly code a bad compiler?
- Why do we need AX instead of MOV DS, data directly with a segment?
- Bootloader in Assembly with Linux kernel
- How should the byte sequence 0x40 0x55 be interpreted by an x86-64 emulator?
- C++ code into assembly
- Drawing circles of increasing radius
- Assembly print on screen using pop ecx
- Equivalent to asm volatile in Gfortran?
- Show 640x480 BMP image with inline ASM c++
- Keep track of numbers entered in by a user in assembly
- 8086 Assembly Arrays with I/O
- DB ASM variable in Inline ASM C++
- What does Jump to means in callgrind?
- How to convert binary into decimal in assembly x8086?
Related Questions in X86
- Why do we need AX instead of MOV DS, data directly with a segment?
- Drawing circles of increasing radius
- Assembly print on screen using pop ecx
- How to add values from vector to each other
- Intel x64 instructions CMPSB/CMPSW/CMPSD/CMPSQ
- Compact implementation of logical AND in x86 assembly
- Can feenableexcept hurt a program performance?
- How do I display the result and remainder in ax and dx in Assembly (tasm)
- ASM : Trouble using int21h on real machine
- jmp instruction *%eax
- What steps are needed to load a second stage bootloader by name on a FAT32 file system in x86 Assembly?
- Assembly code to print a new line string
- Write System Call Argument Registers
- How to jump to an address saved in a register in intel assembly?
- Find middle value of a list
Related Questions in SPIDERMONKEY
- Spidermonkey api: object function returning an object
- Obtaning the AST of JavaScript code from Spidermonkey
- What does it mean that SpiderMonkey is threadsafe?
- Linking shared, static, and dynamic library
- javascript binding on wp8 and winrt
- How to use packaged modules in a non-node JS environment?
- SpiderMonkey shell. Is it possible to load shred library dynamicly?
- Avoid compilation overhead
- Is Javascript substring virtual?
- Recognizing JavaScript functions with GJS (Spidermonkey 1.7)
- Loading and reading XML files in cocos2d-x 3.0 javascript scripts
- Embed javascript code in spidermonkey in multithreaded application
- JavaScript experts: why does `with` nullify the compiler's scope-related optimizations
- JavaScript experts: Do block-scopes with `{}` and anonymous functions both help garbage-collection?
- Once again: How to get DOM in JavaScript Engine? Has this somebody done?
Related Questions in ASM.JS
- "emcc" command does not recognized
- Emscripten and ASMjs
- Can compile-to-JavaScript tools be used for "regular" client-side development?
- Can I get simple asm.js code? when simple c api code compile using emscripten
- asm.js compilation info in Chrome
- How can you compile a Rust library to target asm.js?
- Is there a way to validate asm.js code
- How can I check if Firefox uses asm.js code?
- asm.js type error: arguments to a comparison must both be signed, unsigned or doubles
- "Invalid Heap Size" error when writing ASM.js by hand
- Unity 2020 project building asm.js files instead of wasm
- asm.js - How should function pointers be implemented
- TypeScript performance (asm.js, closure compiler) and overhead
- How to return an array of numbers from a function in asm.js?
- Optimize for asm.js in OdinMonkey
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
I have just learnt that OdinMonkey does not directly generate assembler code (https://github.com/dherman/asm.js/issues/80#issuecomment-31673247) but does generate optimized MIR code for IonMonkey, which is then translated to LIR code and then to machine code.
Thus my question should have been how to dump the assembly that IonMonkey processes and outputs. For the intermediate code one can use a debug build of SpiderMonkey's js shell with IONFLAGS=logs. This gives quite a lot of information in /tmp/ion.cfg. For the assembly code, this site (https://developer.mozilla.org/en-US/docs/SpiderMonkey/Hacking_Tips) suggests to use gdb to disassemble the machine code.