Computation Requirements: Source to Bytecode vs Bytecode to Machine Code

GWestphal

Golden Member
Jul 22, 2009
1,120
0
76
Where is the majority of compiling computations done? Is the larger percentage of computation spent moving it from source to bytecode or bytecode to machine code?
 

Markbnj

Elite Member <br>Moderator Emeritus
Moderator
Sep 16, 2005
15,682
14
81
www.markbetz.net
I don't know the answer but I guess it will be in the source -> bytecode transformation. The semantics are richer and more complex. The translation from bytecode to machine code should be much more straightforward, by definition.
 

GWestphal

Golden Member
Jul 22, 2009
1,120
0
76
That was my assumption too, but I guess I'm looking for ballpark percentages on both? It must mostly (maybe 90-99%) be the source to bytecode, since JIT performance is pretty good (see java, python).