首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > 编程 >

关于erlang:apply/二/3

2013-11-08 
关于erlang:apply/2/3?Presumably?- when the compiler sees apply/2 or apply/3 in an expression? ?it g

关于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

热点排行