[erlang-questions] What are the differences between beam files produced by c(...) and erlc?

Yves S. Garret yoursurrogategod@REDACTED
Sat Jun 15 17:17:01 CEST 2013


This is the code that I'm working with just for fun:
-module(my_module).

-export([pie/0]).

pie() ->
  3.14.

Now, in the Erlang shell, I do c(my_module). and get a .beam file that's
540 bytes.
Ok, no problem.  Now, if I run erlc my_module.erl, I get the same .beam
file that
604 bytes!  Why?  Shouldn't they be the same?  If not, what are the
differences?

I'm running CentOS 6.4 32-bit and Erlang version R16B.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20130615/b1314739/attachment.htm>


More information about the erlang-questions mailing list