Yes, so the built-in compiler is built-in. Only those modules compiled with the + native option are executed in their own machine code, and the rest are interpreted by the BEAM emulator, as usual. When you make calls between modules compiled differently, a "mode switch" occurs. This way you can easily mix your own and emulated modules. However, you should try to choose which modules you inherit to avoid switching modes in tough critical performance cycles, as you have to do a little overhead each time.
RichardC Feb 06 '10 at 10:15 2010-02-06 10:15
source share