[erlang-questions] noob HIPE question

Bengt Kleberg bengt.kleberg@REDACTED
Mon Sep 8 08:57:39 CEST 2008


Greetings,

Just to be really, really sure: Do you still have a file called
binarytrees.beam after  doing "erlc +native +"{hipe,[o3]}"
binarytrees.erl"?


bengt

On Sun, 2008-09-07 at 22:33 -0700, Kevin Scaldeferri wrote:
> 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"]]}, 
> {init,start_it,1},{init,start_em,1}]}}
> 
> 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?
> 
> 
> -kevin
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://www.erlang.org/mailman/listinfo/erlang-questions




More information about the erlang-questions mailing list