What does the beam '%live' instruction do?

Bjorn Gustavsson bjorn@REDACTED
Tue Mar 29 11:02:44 CEST 2005


It does nothing.

It is there just to help the optimizing passes.

/Bjorn

James Hague <james.hague@REDACTED> writes:

> Erlang:
> 
>    sum(A,B) -> A + B.
> 
> BEAM:
> 
>     {bif,'+',{f,0},[{x,0},{x,1}],{x,0}}.
>     {'%live',1}.  <-- What does this do?
>     return.
> 

-- 
Björn Gustavsson, Erlang/OTP, Ericsson AB



More information about the erlang-questions mailing list