[erlang-questions] noob HIPE question

Kevin Scaldeferri <>
Mon Sep 8 07:33:44 CEST 2008

I spend most of my time on Mac, so HIPE is pretty new to me.  Can  
anyone explain this behavior?

$ erlc binarytrees.erl
$ erl  -noshell -run binarytrees main 10
stretch tree of depth 11         check: -1
2048     trees of depth 4        check: -2048
512      trees of depth 6        check: -512
128      trees of depth 8        check: -128
32       trees of depth 10       check: -32
long lived tree of depth 10      check: -1

$ erlc +native +"{hipe,[o3]}" binarytrees.erl
$ erl  -noshell -run binarytrees main 10
{"init terminating in do_boot",{undef,[{binarytrees,main,[["10"]]}, 

Crash dump was written to: erl_crash.dump
init terminating in do_boot ()

Why would 'erl' fail to find the code when it's been compiled with HIPE?


More information about the erlang-questions mailing list