kerl icon indicating copy to clipboard operation
kerl copied to clipboard

No HiPE in a default kerl build

Open essen opened this issue 14 years ago • 5 comments

I don't have HiPE in a default kerl build (no options). Tried with r14b and r14b02. On the other hand, a default source build compiled manually enables HiPE. Is that expected behavior?

essen avatar May 05 '11 17:05 essen

default source build compiled manually

you mean ./configure and then make? kerl (for now, at least) calls otp_build script shipped with erlang.

develop7 avatar May 05 '11 19:05 develop7

Yeah first one. What's odd is that the README makes you think you're supposed to get HiPE by default because there is this example on how to build r14b02_nohipe explicitly, but it sounds like they would both be the same?

essen avatar May 05 '11 20:05 essen

The README's wrong then, I'll correct it.

'./otp_build configure' disables HiPE on linux:

if target_contains linux; then 
        XX=`echo $* | grep -v able-hipe`
    if [ "$*" = "$XX" ]; then 
        CONFIG_FLAGS="$CONFIG_FLAGS --disable-hipe" 
    fi
fi

so on linux you have to specifically enable it: KERL_CONFIGURE_OPTIONS="--enable-hipe" kerl build R14B02 r14b02_hipe

evax avatar May 06 '11 06:05 evax

Alright, is more clear now. Thanks!

essen avatar May 06 '11 07:05 essen

@evax I've spent some time on comparing build flags produced by otp_build and ./configure and decided to use ./configure since it detects all stuff available on current platform and configures sources accordingly instead of relying on general presets built by unknown people at Ericsson (or whatever they are from).

develop7 avatar Jun 18 '11 09:06 develop7