Source from beam files?

Sean Hinde Sean.Hinde@REDACTED
Fri Aug 23 15:53:31 CEST 2002


> Jozsef Berces (QCZ) writes:
> 
>  > Is it possible to reconstruct the erlang source from a beam file? 
>  > Is the beam file format documented? Obviously, it must be, 
> so is it public?
> 
> From the FAQ:
> 
> 3.6 [...] The internals of the BEAM file format are described 
> on Björn's
>    homepage 
> (http://www.ericsson.com/cslab/~bjorn/beam_file_format.html). 
> 
> There was some discussion about reconstructing source from .beam files
> on the mailing list a couple of years ago. A bit of searching through
> the online mailing list archive would probably get you some more
> clues. Maybe someone can remember when the discussion was.

If you were using a version of the compiler which set the debug_info option
by default, or you set this when you compiled the file the source code is
included in the beam file.

You can use the beam_lib module to re-extract the abstract code if it is in
there

Sean



NOTICE AND DISCLAIMER:
This email (including attachments) is confidential.  If you have received
this email in error please notify the sender immediately and delete this
email from your system without copying or disseminating it or placing any
reliance upon its contents.  We cannot accept liability for any breaches of
confidence arising through use of email.  Any opinions expressed in this
email (including attachments) are those of the author and do not necessarily
reflect our opinions.  We will not accept responsibility for any commitments
made by our employees outside the scope of our business.  We do not warrant
the accuracy or completeness of such information.




More information about the erlang-questions mailing list