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. Linux Compiler Benchmarks Of LLVM Clang 3.5 vs. LLVM Clang 3.6-rc1
  2. Intel Broadwell HD Graphics 5500: Windows 8.1 vs. Linux
  3. Linux Benchmarks Of NVIDIA's Early 2015 GeForce Line-Up
  4. NVIDIA GeForce GTX 960: A Great $200 GPU For Linux Gamers
  5. Disk Encryption Tests On Fedora 21
  6. Xonotic 0.8 Performance With The Open-Source AMD/NVIDIA Gallium3D Drivers
Latest Linux News
  1. Ubuntu's Mir Gains Server-Side Platform Probing
  2. Broadwell Linux Ultrabook Running MUCH Cooler Than Haswell
  3. LZHAM 1.0 Lossless Data Compression Codec Released
  4. LibreOffice 4.4 Is Coming Soon With New Features
  5. Linux Users Upset By Chromium's Busted HiDPI Support
  6. BPF Backend Merged Into LLVM To Make Use Of New Kernel Functionality
  7. Dying Light Is Headed To Linux, SteamOS
  8. Wayland 1.6.1 & Weston 1.6.1 Released
  9. Mesa 10.4.3 Brings A Bunch Of Fixes For The Direct3D "Nine" Support
  10. Intel Has A Few More Graphics Changes For The Linux 3.20 Kernel
Most Viewed News This Week
  1. Windows 10 To Be A Free Upgrade: What Linux Users Need To Know
  2. CoreOS Moves From Btrfs To EXT4 + OverlayFS
  3. Google Admin Encourages Trying Btrfs, Not ZFS On Linux
  4. TraceFS: The Newest Linux File-System
  5. My Initial Intel Broadwell Linux Experience With The ThinkPad X1 Carbon
  6. Mozilla's Servo Still On Track For 2015 Alpha Release
  7. Fedora 23 Likely To Pursue Wayland By Default
  8. Keith Packard Leaves Intel's Linux Graphics Work