Skip to content

Instantly share code, notes, and snippets.

@bbhoss
Created September 16, 2015 03:51
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 bbhoss/3dffbc2da7a6ff54b443 to your computer and use it in GitHub Desktop.
Save bbhoss/3dffbc2da7a6ff54b443 to your computer and use it in GitHub Desktop.
{module, erl_list}. %% version = 0
{exports, [{hello_pipe,1},{hello_pp,1},{module_info,0},{module_info,1}]}.
{attributes, []}.
{labels, 9}.
{function, hello_pp, 1, 2}.
{label,1}.
{line,[{location,"erl_list.erl",5}]}.
{func_info,{atom,erl_list},{atom,hello_pp},1}.
{label,2}.
{move,{literal,[1,2,3,4,5]},{x,1}}.
{line,[{location,"erl_list.erl",7}]}.
{call_ext_only,2,{extfunc,erlang,'++',2}}.
{function, hello_pipe, 1, 4}.
{label,3}.
{line,[{location,"erl_list.erl",9}]}.
{func_info,{atom,erl_list},{atom,hello_pipe},1}.
{label,4}.
{test_heap,2,1}.
{put_list,{x,0},{literal,[1,2,3,4,5]},{x,0}}.
return.
{function, module_info, 0, 6}.
{label,5}.
{line,[]}.
{func_info,{atom,erl_list},{atom,module_info},0}.
{label,6}.
{move,{atom,erl_list},{x,0}}.
{line,[]}.
{call_ext_only,1,{extfunc,erlang,get_module_info,1}}.
{function, module_info, 1, 8}.
{label,7}.
{line,[]}.
{func_info,{atom,erl_list},{atom,module_info},1}.
{label,8}.
{move,{x,0},{x,1}}.
{move,{atom,erl_list},{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