Esta tradução está incompleta. Por favor, ajude a traduzir este artigo do Inglês.

Emscripten é um compilador LLVM para JavaScript. Este utiliza bytecode do LLVM (por exemplo, gerado a partir de C/C++, utilziando Clang, ou de outra linguagem) e o compila no JavaScript, que pode ser executado na Web.

Importante: esta página fornece uma breve introdução sobre o que Emscripten é. Para comelçar com Emscripten, vá para a Wiki oficial do Emscripten.

Ao utilziar o Emscripten, pode

  • Compile C and C++ code into JavaScript
  • Compile any other code that can be translated into LLVM bytecode into JavaScript.
  • Compile the C/C++ runtimes of other languages into JavaScript, and then run code in those other languages in an indirect way (this has been done for Python and Lua)!

Emscripten makes native code immediately available on the Web: a platform that is standards-based, has numerous independent compatible implementations, and runs everywhere from PCs to iPads.

With Emscripten, C/C++ developers don’t have the high cost of porting code manually to JavaScript — or having to learn JavaScript at all. Web developers also benefit, as they can use the many thousands of pre-existing native utilities and libraries in their sites.

Practically any portable C or C++ codebase can be compiled into JavaScript using Emscripten, ranging from high performance games that need to render graphics, play sounds, and load and process files, through to application frameworks like Qt.

Emscripten generates fast code — its default output format is asm.js , a highly optimizable subset of JavaScript that can execute at close to native speed in many cases.

Outros artigos de interesse na MDN

  • Our Games zone contains some useful content related to games development, which is a common area of use for Emscripten.
  • Our Emscripten techniques page is a place to store useful Emscripten-related ideas that haven't made it onto the Emscripten Wiki.

Etiquetas do documento e contribuidores

Contribuidores para esta página: mansil
Última atualização por: mansil,