Files
compiler-explorer/etc/config/erlang.defaults.properties
Andrea TomasiandMatt Godbolt 4d39fdddb8 View Erlang jitted assembly (#6104)
Hi, this PR adds a way to view the assemply code of Erlang code.

Since OTP 24 inside the Erlang VM there is a jitter that runs while we
load the code.

The standard way to dump the asm code is to pass an option during the
startup. The main issue is that this triggers the dump of all the
modules we are loading (and it is slow).
To avoid this I'm using some instrinsics of OTP 26 but at least we dump
only what we need.

(I'm planning to add it to `infra` and then to awmason

Some references:
-
https://www.erlang.org/blog/otp-26-highlights/#improvements-in-the-erlang-compiler-and-jit
-
https://github.com/erlang/otp/blob/master/erts/emulator/beam/erl_bif_info.c#L5255

---------

Co-authored-by: Matt Godbolt <matt@godbolt.org>
2024-02-12 21:49:03 -06:00

30 lines
767 B
Properties

# Default settings for Erlang
compilers=&erlang:&erlangasm
versionFlag=-noshell -eval io:fwrite("~s~n", [erlang:system_info(otp_release)]), halt().
objdumper=
group.erlang.compilers=erlcdefault
group.erlang.compilerType=erlang
group.erlang.instructionSet=beam
compiler.erlcdefault.exe=/usr/bin/erl
compiler.erlcdefault.runtime=/usr/bin/erl
compiler.erlcdefault.name=erl default
group.erlangasm.compilers=erlcasmdefault
group.erlangasm.compilerType=erlangasm
group.erlangasm.instructionSet=amd64
compiler.erlcasmdefault.exe=/usr/bin/erl
compiler.erlcasmdefault.runtime=/usr/bin/erl
compiler.erlcasmdefault.name=erl default
defaultCompiler=erlcdefault
demangler=
postProcess=
options=-S
supportsBinary=false
needsMulti=false
supportsExecute=false
interpreted=true