What does the beam '%live' instruction do?

Bjorn Gustavsson <>
Tue Mar 29 11:02:44 CEST 2005


It does nothing.

It is there just to help the optimizing passes.

/Bjorn

James Hague <> 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