Another advantage is that stack-based bytecode (like Java's bytecode) is considerably more compact than register-based bytecode or machine code.