<p><span class="h-card" translate="no"><a href="https://mastodon.social/@mcc" class="u-url mention">@<span>mcc</span></a></span> Hotspot isn't really a stack machine. *Java bytecode* is written for a stack machine, as is Wasm machine code, which works out well because it's compact: you don't encode (almost) any temporary indices, like you would have in LLVM</p><p>the moment you load it, you transform it into a register representation in memory. not literally every implementation does it, but most do not actually execute it with a data stack</p>