Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Bootstrapping java and python compilers

The wikipedia page on compiler bootstrapping lists python and java among the languages whose compilers are bootstrapped. Aren't javac and cpython implemented in c? Why are these languages listed on that page?

like image 249
saga Avatar asked Dec 06 '25 04:12

saga


1 Answers

javac is written in Java, and compiles Java source to bytecode. The source is available online. So javac was bootstrapped. You may be confusing javac with the JVM as the latter is written in C and is used to compile bytecode to machine code and run it.

Same thing for Python. The compiler is not the same thing as the execution environment.

like image 56
Thorbjørn Ravn Andersen Avatar answered Dec 07 '25 17:12

Thorbjørn Ravn Andersen