Skip to content

Instantly share code, notes, and snippets.

View sashaafm's full-sized avatar

Sasha Fonseca sashaafm

  • Portugal
View GitHub Profile
@sashaafm
sashaafm / erlang_formats.erl
Created October 4, 2016 13:07
Example on how to get all Erlang formats from source code to disassembled bytecode
% Example on how to get all Erlang formats from source code to disassembled bytecode
% Erlang Source --> Erlang AST --> Erlang Expanded AST --> Core Erlang --> BEAM Bytecode
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% First the original module
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-module(add).
-export([add/2]).