[erlang-questions] noob HIPE question

Kevin Scaldeferri kevin@REDACTED
Mon Sep 8 21:08:19 CEST 2008


On Sep 8, 2008, at 11:59 AM, Richard Carlsson wrote:

> Kevin Scaldeferri wrote:
>> On Sep 8, 2008, at 12:06 AM, Richard Carlsson wrote:
>>> 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 ()
>>>
>>> Can you post the code, either to the list or to me personally?
>> http://shootout.alioth.debian.org/u64q/benchmark.php?test=binarytrees&lang=hipe
>
> Well, it works fine using R12B-3 under Ubuntu. It could be Mac- 
> related.
> The main interesting point now is: after the erlc +native command, do
> you have a binarytrees.beam file? If not, it is conceivable that there
> is some kind of silent crash in the compiler (even though that should
> not happen).

Sorry about the confusion from my initial message, but this in on  
Linux (thus newfound ability to use HIPE), not on Mac.

Also, there's some weird environment or config thing going on.  The  
same commands, on the same machine, run via make work just fine.  But,  
at the command-line, it fails.  So, I'm trying to figure out what  
could possibly be different that would cause this.

(and, yes, binarytrees.beam is there)


-kevin





More information about the erlang-questions mailing list