Erlang JIT and loaded code

Vitor Rocha <[email protected]> Mon, 18 Apr 2022 21:46:25 -0300
Newsgroups gmane.comp.lang.erlang.general
Message-ID <CAOJ54GoVJUs3H9JCtHAPVDdrZttOs5rF=sd_j1F21J+tg1hG+A@mail.gmail.com>
--0000000000008a626305dcf735ca
Content-Type: text/plain; charset="UTF-8"

Hello,

Given the code is compiled to native during startup time with the new JIT
(beamasm) approach, (1) how do I know if my code is actually being executed
as interpreted or native?

(2) If I compile a module inside Erlang's shell, using the `c:c/1`
function, is the module going to be compiled to native too? Will its
execution be switched to native?

(3) Where is stored the generated beamasm native code? I would like to get
its size in bytes?

-- 
Atenciosamente,
Vitor Rocha da Silva

--0000000000008a626305dcf735ca
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>Hello,</div><div><br></div><div>Given the code is com=
piled to native during startup time with the new JIT (beamasm) approach, (1=
) how do I know if my code is actually being executed as interpreted or nat=
ive?<br><br></div><div>(2) If I compile a module inside Erlang&#39;s shell,=
 using the `c:c/1` function, is the module going to be compiled to native t=
oo? Will its execution be switched to native?<br></div><div><br></div><div>=
(3) Where is stored the generated beamasm native code? I would like to get =
its size in bytes?</div><div><br></div><div>-- <br><div dir=3D"ltr" class=
=3D"gmail_signature" data-smartmail=3D"gmail_signature"><span style=3D"font=
-family:trebuchet ms,sans-serif">Atenciosamente,<br>Vitor Rocha da Silva</s=
pan><br></div></div></div>

--0000000000008a626305dcf735ca--