AtomVM icon indicating copy to clipboard operation
AtomVM copied to clipboard

Add --startup-module/--entry-point switch to PackBEAM

Open bettio opened this issue 6 years ago • 1 comments

PackBEAM uses the first given .beam module as startup-module. This behavior is error prone and should be fixed. A new switch --startup-module (or maybe --entry-point) is proposed, so the startup module is explicitly set.

bettio avatar Sep 07 '19 16:09 bettio

The standalone packbeam tool provided by atomvm_packbeam, and the packbeam_api module support this now. Perhaps the Erlang version of the tool can replace both the C tool used in AtomVM (as a submodule) and be used as a dependency for ExAtomVM. This would prevent any difference in the packed AVMs, simplify maintenance, and add the --start module functionality to ExAtomVM with very little additional work.

UncleGrumpy avatar Oct 21 '24 20:10 UncleGrumpy