Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are the disadvantages of targeting the JVM instead of x86?

I'm developing a new language. My initial target was to compile to native x86 for the Windows platform, but now I am in doubt.

I've seen some new languages target the JVM (most notable Scala and Clojure). Ofcourse it's not possible to port every language easily to the JVM; to do so may lead to small changes to the language and it's design.

After posing this question, I even doubted more about this decision. I now know some "pro" JVM arguments. The original question was: is targetting the JVM a good idea, when creating a compiler for a new language?

Updated the question: What are the disadvantages of targeting the JVM instead of x86 on Windows?

like image 939
Pindatjuh Avatar asked Jun 02 '10 18:06

Pindatjuh


1 Answers

You may want to look at targeting the LLVM instead of the JVM. The LLVM can be used to target a number of architectures, including x86.

There's more to portability than simple CPU support, but the LLVM can help a lot and still give you native code, if you like.

like image 133
Will Hartung Avatar answered Oct 10 '22 02:10

Will Hartung