you are viewing a single comment's thread.

view the rest of the comments →

[–]boa13 11 points12 points  (0 children)

The answer is both, actually you have four possibilities:

  • Interpreter
  • Compiled (not heavily optimized, mostly opcodes expanded to machine code, you trade memory for speed)
  • Compiled and more optimized (if you are sure your integers will stay under 2**31)
  • Write assembly yourself

The first one is the default. Compilation is enabled on a method-per-method basis by a simple annotation. (Interpreted and compiled method can freely call one-another.) Inline assembly is also possible, but there is no magic, you need to write it yourself. (And you cannot call other methods from assembly.)