<p><span class="h-card" translate="no"><a href="https://mastodon.social/@mcc" class="u-url mention">@<span>mcc</span></a></span> Hotspot isn&#39;t really a stack machine. *Java bytecode* is written for a stack machine, as is Wasm machine code, which works out well because it&#39;s compact: you don&#39;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>
Reply