Erlang compilation: mixed of “HiPE object code” and “opcode”?
问题 Is it possible to have a VM instance that executes both HiPE code and the usual "opcode" based objects at the same time? This question is related to : Erlang OTP release compiles with HiPE? 回答1: Yes, that is how the native compiler is integrated. Only those modules that are compiled with the +native option are executing in native machine code, and the rest are interpreted by the BEAM emulator as usual. When you make calls between modules compiled in different ways, a "mode switch" happens.