How to replace browser javascript engine with LLVM? - Stack Overflow

As a proof of concept, I would like to get a browser to be able to run LLVM IR. The basic idea would be

As a proof of concept, I would like to get a browser to be able to run LLVM IR. The basic idea would be that any language with an LLVM piler, would be able to work as a first class citizen on the net. (Which is why I don't want to go the LLVM IR -> JS route for anything other than a "fallback")

The LLVM code should be able to all the same functions (e.g. DOM) with the same restrictions. I'm looking for pointers on getting started, where the best place to dive in is (I have C/C++ experience) and what the easiest browser is going to be to extend.

Ideally I'm looking for something very modular, so this is just another "scripting engine" as is the javascript one, as is any other future ones (e.g. direct python one)

Thanks very much

As a proof of concept, I would like to get a browser to be able to run LLVM IR. The basic idea would be that any language with an LLVM piler, would be able to work as a first class citizen on the net. (Which is why I don't want to go the LLVM IR -> JS route for anything other than a "fallback")

The LLVM code should be able to all the same functions (e.g. DOM) with the same restrictions. I'm looking for pointers on getting started, where the best place to dive in is (I have C/C++ experience) and what the easiest browser is going to be to extend.

Ideally I'm looking for something very modular, so this is just another "scripting engine" as is the javascript one, as is any other future ones (e.g. direct python one)

Thanks very much

Share Improve this question edited Nov 28, 2011 at 5:53 Mr.T.K 2,3467 gold badges26 silver badges44 bronze badges asked Jun 12, 2011 at 7:35 HepticHeptic 3,1064 gold badges33 silver badges53 bronze badges 6
  • 4 Take a look at Portable Native Client project (PNaCl). – arrowd Commented Jun 12, 2011 at 9:11
  • 3 Mind that LLVM IR is not platform-independent at all. – SK-logic Commented Jun 12, 2011 at 11:27
  • Any advance on this? it seems interesting, for the PoC emscripten seems to be a good option. – Jorge E. Cardona Commented Nov 28, 2011 at 5:15
  • I indeed like the idea of yours, but I believe asking "how" is a wrong way. If someone knew how to do it, they would have done it, or published their designs. If you want to do this, you need to do some research, and when you e up with a technical problem that you don't know how to solve, then e and ask. – Kos Commented Feb 9, 2012 at 14:27
  • 1 You can pare differences between Dartium and Chromium. dartlang/tools/dartium – Ginden Commented Jan 29, 2015 at 14:04
 |  Show 1 more ment

1 Answer 1

Reset to default 3

Emscripten is an LLVM backend targeting asm.js, which may be executed on all major browsers. The project dates back to 2010. This translates the IR into asm.js for you. Ideally you should be able to expand the project to support additional languages as opposed to just C/C++; either that or as a launching pad to put the other ponents in place prior to writing your bindings for the execution environment against the browser interfaces you desire.

asm.js has been used to run the Unreal engine, along with porting DosBox for Archive's game archives.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744757635a4591976.html

相关推荐

  • How to replace browser javascript engine with LLVM? - Stack Overflow

    As a proof of concept, I would like to get a browser to be able to run LLVM IR. The basic idea would be

    14小时前
    30

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信