Skip to content

Instantly share code, notes, and snippets.

@aerosol
Forked from anonymous/foo.erl
Created December 17, 2012 12:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aerosol/4318099 to your computer and use it in GitHub Desktop.
Save aerosol/4318099 to your computer and use it in GitHub Desktop.
{module, foo}. %% version = 0
{exports, [{bar,1},{module_info,0},{module_info,1}]}.
{attributes, []}.
{labels, 7}.
{function, bar, 1, 2}.
{label,1}.
{line,[{location,"foo.erl",5}]}.
{func_info,{atom,foo},{atom,bar},1}.
{label,2}.
{bs_append,{f,0},{integer,1},0,1,8,{x,0},{field_flags,[]},{x,1}}.
{bs_put_integer,{f,0},
{integer,1},
1,
{field_flags,[unsigned,big]},
{integer,0}}.
{move,{x,1},{x,0}}.
return.
{function, module_info, 0, 4}.
{label,3}.
{line,[]}.
{func_info,{atom,foo},{atom,module_info},0}.
{label,4}.
{move,{atom,foo},{x,0}}.
{line,[]}.
{call_ext_only,1,{extfunc,erlang,get_module_info,1}}.
{function, module_info, 1, 6}.
{label,5}.
{line,[]}.
{func_info,{atom,foo},{atom,module_info},1}.
{label,6}.
{move,{x,0},{x,1}}.
{move,{atom,foo},{x,0}}.
{line,[]}.
{call_ext_only,2,{extfunc,erlang,get_module_info,2}}.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment