[erlang-questions] Implementation of erlang binary module

Dmytro Lytovchenko <>
Sat Jan 21 14:38:12 CET 2017


Standard library rarely uses dynamic loaded SO/DLL modules (so called
NIFs), rather they use BIF functions, code for them is included straight
into Erlang/OTP C source and follows different rules than NIF. Have a
search through source C files for binary_<function name>_<arity>, with high
chance you will find the C source by this name.

2017-01-21 13:27 GMT+01:00 Karlo Kuna <>:

> I was wandering how is standard module "binary" implemented
> i am looking at source and i see that most functions are nifs (this makes
> sense),
> but there is no "-on_load" directive and i can't find c implementation.
> Please can someone explain to me how is this module using nifs without
> -on_load directive and also can tell me where is c implementation??
>
>
> _______________________________________________
> erlang-questions mailing list
> 
> http://erlang.org/mailman/listinfo/erlang-questions
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20170121/109b8abf/attachment.html>


More information about the erlang-questions mailing list