[erlang-questions] Detect beam compilation target

Constantin Rack constantin@REDACTED
Sun Feb 28 13:32:31 CET 2016


The BEAM format number and the number of the highest opcode are stored in the code chunk:
https://github.com/erlang/otp/blob/master/erts/emulator/beam/beam_load.c#L1714-L1757

-Constantin


Am 28.02.2016 um 12:53 schrieb Vlad Dumitrescu:

> Hi!
> 
> Is there some information in the beam files that would identify the compatibility with the current runtime, or is it only when trying to execute incompatible code that it is detected?
> 
> best regards, 
> Vlad
> 
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20160228/355c411c/attachment.htm>


More information about the erlang-questions mailing list