Javac 是如何编译成可执行文件的?

How is Javac compiled to an executable?

Javac 本身是写在 Java 中的,但是当我们下载 JDK 时它作为可执行文件提供。使用什么工具将 Javac 的 Java 源代码编译为可执行文件?

一个JDK,叫做boot JDK which is usually the N-1 version of the JDK you're building, plus C/C++ compilers. At least for OpenJDK, the supported toolchains by Oracle are gcc on Linux, clang on macOS, and msvc on Windows. Additionally, SAP maintains the AIX build using XLC