Why are beam files so large?

Kent Boortz kent@REDACTED
Wed Dec 6 22:32:05 CET 2000


A BEAM file now contains several structured sections. You can run
erlc like

  % erlc +compressed +no_debug_info ........

to get them alot smaller. There are still sections left that
can be removed, I don't know how. Check out the sections and
the sizes with

  1> beam_lib:info("foo.beam").
  [{file,"foo.beam"},
   {module,foo},
   {chunks,[{"Atom",20,67},
            {"Code",96,181},
            {"StrT",288,31},
            {"ImpT",328,28},
            {"ExpT",364,52},
            {"LocT",424,4},
            {"Attr",436,81},
            {"CInf",528,202},
            {"Abst",740,492}]}]

kent



More information about the erlang-questions mailing list