1

How to compile Scala into machine code ?

Is LLVM (http://en.wikipedia.org/wiki/LLVM) plausible ?

Update: Would such compilation make the code run any faster in the target machine ?

3
  • I'm not sure whether you're inquiring about the general feasibility of building a Scala->Machine code compiler, or looking for an existing product that does that? Commented Jun 24, 2014 at 8:23
  • 1
    " Update: Would such compilation make the code run faster for the target machine " - Not necessarily, the JVM's JIT compilers are pretty good nowadays (and can take advantage of what's happening at runtime, unlike an AOT compiler). Can you explain more about why you're thinking you might need to do this? Commented Jun 24, 2014 at 9:02
  • Related: stackoverflow.com/questions/7371779/maturity-of-scala-llvm Commented Jun 24, 2014 at 9:34

1 Answer 1

1

wind changed! happy to update new answer. :)

http://www.scala-native.org/

https://github.com/scala-native/scala-native

--

[outdated answer]

https://greedy.github.io/scala-llvm/

Geoff Reedy working on it. HTH

Sign up to request clarification or add additional context in comments.

3 Comments

Geoff Reedy worked on it (there is no progress for a loooong time and repository seems to be obsolete)
maybe, then, there is many samples to references. ldc, julia, corvus, Numba, etc
huh? I don't get how are they relevant to How to compile Scala into machine code?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.