1. Computers
  2. Display Drivers
  3. Graphics Cards
  4. Memory
  5. Motherboards
  6. Processors
  7. Software
  8. Storage
  9. Operating Systems


Facebook RSS Twitter Twitter Google Plus


Phoronix Test Suite

OpenBenchmarking.org

Emscripten: Bang Out JavaScript From LLVM Bitcode

Compiler

Published on 20 December 2011 08:40 AM EST
Written by Michael Larabel in Compiler
8 Comments

There's an interesting new open-source LLVM-using project called Emscripten. Emscripten allows JavaScript to be automatically generated from LLVM bit-code. In other words, you can take C/C++ code-bases and easily translate them into JavaScript.

Emscripten takes LLVM bitcode and from that turns it into JavaScript that can be executed from the web-browser. The LLVM bit-code can be generated from the Clang C/C++ compiler or any other LLVM front-end that ends up being lowered down into LLVM bit-code.

This translator doesn't work only for trivial projects, but large code-bases like Python, Bullet, and Poppler have been converted from their C/C++ code into working JavaScript using Emscripten. This project was brought up by Alon Zakai of Mozilla to the LLVM developers' list.

Other code-bases that have been changed into JavaScript for demo purposes include Lua, FreeType, eSpeak text synthesis, a ray-tracing engine, Python, and Ruby.

For those interested in learning more about this neat LLVM project, visit the GitHub project page.

About The Author
Michael Larabel is the principal author of Phoronix.com and founded the web-site in 2004 with a focus on enriching the Linux hardware experience and being the largest web-site devoted to Linux hardware reviews, particularly for products relevant to Linux gamers and enthusiasts but also commonly reviewing servers/workstations and embedded Linux devices. Michael has written more than 10,000 articles covering the state of Linux hardware support, Linux performance, graphics hardware drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated testing software. He can be followed via and or contacted via .
Latest Articles & Reviews
  1. Intel Broadwell: GCC 4.9 vs. LLVM Clang 3.5 Compiler Benchmarks
  2. Ubuntu vs. Fedora Linux On Lenovo's X1 Carbon With Core i7 Broadwell
  3. Ubuntu 15.04 Is The Easy Path To Better Performance On Intel Broadwell
  4. NVIDIA's Latest Maxwell Line-Up Against AMD With Catalyst On Linux
  5. Preliminary Tests Of Intel Sandy Bridge & Ivy Bridge vs. Broadwell
  6. AMD FX-8320E Performance On Linux
Latest Linux News
  1. I Switched (Back) Over To Fedora As My Main OS & It's Going Great!
  2. Windows 10, PS4, C4 & Systemd News Kicked Off 2015
  3. Calamares 1.0 Distribution-Independent Installer Framework Released
  4. Librem 15 Linux Laptop Set To Close At Around $400k USD
  5. Virtual GEM To Increase Mesa's Software Rasterizer Performance
  6. Open Lunchbox: Yet Another Open-Source Laptop Attempt
  7. Wayland/Weston 1.7 Release Candidate
  8. Bugzilla 5.0 Is Coming Soon With New Features
  9. Linux Benchmarking... Even Faster & A Very Interesting February
  10. Does VirtualBox VM Have Much A Future Left?
Most Viewed News This Week
  1. PlayStation 4 System Compiler Support Landing In LLVM
  2. Does VirtualBox VM Have Much A Future Left?
  3. Linux "GHOST" Vulnerability Hits Glibc Systems
  4. LibreOffice 4.4 Is Coming Soon With New Features
  5. LLVM Adds Options To Do Fuzz Testing
  6. LibreOffice 4.4 Released With Better OOXML Support, UI Improvements
  7. Broadwell Linux Ultrabook Running MUCH Cooler Than Haswell
  8. Inkscape 0.91 Goes Through C++ Code Conversion, New Cairo Rendering, OpenMP Filters