[erlang-questions] What erlc flags are needed to compile native (HiPE) to run on smp-disabled runtime?

Kevin Scaldeferri <>
Mon Oct 13 20:33:30 CEST 2008


On Oct 13, 2008, at 10:00 AM, Isaac Gouy wrote:

>
> --- Kevin Scaldeferri <> wrote:
>
>>
>> On Oct 12, 2008, at 10:18 PM, Isaac Gouy wrote:
>>
>>>> On Sun, Oct 12, 2008 at 2:44 PM, Mikael Pettersson
>> <>
>>>
>>>>> For various reasons the HiPE compiler can only generate code
>>>>> for the runtime system it's running on, so to generate non-SMP
>>>>> code you must run the compiler from within a non-SMP system.
>>>
>>> I've now made a separate build using --disable-smp-support so both
>>
>>> HiPE
>>> and -smp disable can be used:
>>>
>>> http://shootout.alioth.debian.org/u32/erlang.php
>>>
>>> http://shootout.alioth.debian.org/u64/erlang.php
>>>
>>
>>
>> This is all well and good for chameneos, but it looks like all erlang
>> entries are being run this way now, including ones like the binary-
>> trees entries that was written to take advantage of multiple cores
>> and which does go faster with SMP
>
> There are 4 sets of measurements.
>
> Those 2 sets of measurements show programs forced to use a single  
> core.
>
> These 2 sets of measurements show programs allowed to use multiple
> cores, and use -smp enable
>
> http://shootout.alioth.debian.org/u32q/erlang.php
>
> http://shootout.alioth.debian.org/u64q/erlang.php
>

Ahh, my mistake.  I didn't look closely enough at the headers.


-kevin





More information about the erlang-questions mailing list