<div dir="ltr"><div><div>Hi, everybody.</div><div><br></div><div>I tried to implement my own BIF-function which is implemented inside Erlang sources.<br><br></div><div>So i made sources of this function in erts/emulator/beam/bif.c and i have changedĀ erts/emulator/beam/bif.tab</div><div>( <a href="https://github.com/loguntsov/otp/commit/7a28a3d99b0c7795d956caec5e4e397183dd1ea9" target="_blank">https://github.com/loguntsov/otp/commit/7a28a3d99b0c7795d956caec5e4e397183dd1ea9</a> )<br></div><div>i found also i must change <span> erts_internal.erl module in /erts/preloaded/src folder.<br></span></div><div><span>So i made it: <a href="https://github.com/loguntsov/otp/commit/84c4bfb8c372ade9d92c4a20515f91fe33062b1d" target="_blank">https://github.com/loguntsov/otp/commit/84c4bfb8c372ade9d92c4a20515f91fe33062b1d</a><br><br></span></div><div><span>My
problem is .. there are prebuilded files based on erts/preloaded/ebin
and actually they are not updating every time what i'm building Erlang.
They are committed as part of sources (seems this is big crutch).<br></span></div>So my question is what is right way to update preloaded modules (beam files) ?<br>May be there is another way to have BIF function outside from Erlang sources ? and building them together ?<br><br></div>Regards.</div>