Open pguyot opened 6 days ago
Thanks for the bug report and your kind words about my talk. It was nice meeting you at the conference. I am impressed how the AtomVM is able to execute BEAM in such a small amount of memory.
The linked pull request fixes the bug. It will be included in Erlang/OTP 27.2.
Describe the bug I don't seem to be able to enable
line_coverage
compiler option using-compile
attribute. This is not consistent withcompile
documentation that says:Am I doing something wrong?
To Reproduce With OTP 27 or 27.1.1 erlc compiler, compile the following:
Alternatively, replace line 2 with:
line_coverage
is never included in the options in the module info. Besides, compiling with -S shows that indeed executable_line opcode is not emitted.Alternatively, compile with
erlc +line_coverage
and the option is in module info andexecutable_line
opcode is emitted.Expected behavior I expect to be able to generate executable_line opcodes using
-compile
attribute.Affected versions This is 27.0 and 27.1.1.
Additional context I'm trying to implement and test
executable_line
opcode in AtomVM after watching @bjorng excellent and insightful talk at CodeBEAM Europe 2024 as I realized we are missing it.