关于erlang:apply/2/3
?
Presumably
?- when the compiler sees apply/2 or apply/3 in an expression
? ?it generates special in-line code
?- there needs to be a "real" function definition so that it
? ?can be called indirectly itself, discoverable in the
? ?module exports, traced if calls arrive that way in the
? ?debugger, &c?
?
apply的调用在beam加载的时候vm会调整相关的指令,实际上是在vm的opcode里面执行的。
专注高性能容错分布式服务器的研究和实现
http://blog.yufeng.info