[erlang-questions] R11B-2 SMP + HiPE: not loading native code
Serge Aleynikov
serge@REDACTED
Thu Jan 4 15:21:46 CET 2007
Kostis Sagonas wrote:
> Serge Aleynikov wrote:
>> Is there any way to hint erlc (via command line) to use SMP-enabled beam?
>>
>> I was only able to do it like this:
>>
>> $ export ERLC_EMULATOR="erl -smp"
>> $ erlc +native test.erl
>>
>> whereas "erlc +smp +native test.erl" doesn't use the SMP BEAM.
>
> Both "erl" and "erlc" are scripts that call the corresponding
> executables depending on the command line switches.
That's what I thought, but unfortunately erlc is not a script.
$ readelf -h erlc
ELF Header:
Magic: 7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00
Class: ELF32
Data: 2's complement, little endian
Version: 1 (current)
OS/ABI: UNIX - System V
ABI Version: 0
Type: EXEC (Executable file)
...
> I guess the best solution to this problem is that the "erlc" script
> should accept the same switches as "erl". In particular, it should
> accept the "-smp" and "-hybrid" switches.
>
> Let's hope that the OTP folks are kind enough to do this change.
I also think it's a good idea.
Serge
More information about the erlang-questions
mailing list