erlc ja hipe

Taavi Talvik taavi@REDACTED
Thu Oct 17 22:17:20 CEST 2002


On Thu, 17 Oct 2002, Happi wrote:

> From: "Taavi Talvik" <taavi@REDACTED>
> > Does erlc support native compilation - i.e. similar to c(module,native)
> > in interpreter?
>
> Yes, you give the option as
>   +native

hmm.. seems to be freebsd specific problem.

My first tries where:

~/work/test/bin/erlc -o ../ebin +hipe xgs.erl
erlc: Error 2 executing 'ecc'.

~/work/test/bin/erlc -o ../ebin +native xgs.erl
erlc: Error 2 executing 'ecc'.

after putting ecc into path (however erlc itself should figure out
ERL_TOP):

~/work/test/bin/erlc -o ../ebin +native xgs.erl
./xgs.erl:none: internal error in native_compile;
crash reason: {undef,[{hipe,compile,
                            [xgs,
<<70,79,82,49,0,0,8,48,66,69,65,77,65,116,111,109,0,0,1,80,0,0,0,40,3
,120,103,115,5,115,116,97,114,116,10,120,103,115,95,115,101,114,118,101,114,10,115,116,97,114,116,
95,108,105,110,107,10,103,101,110,95,115,101,114,118,101,114,4,99,97,108,108,4,115,116,111,112,6,9
9,111,110,102,105,103,6,99,114,101,97,116,101,14,115,105,103,110,97,108,95,99,111,110,110,101,99,1
16,14,115,105,.....
...

but in interpreter c(module,native) works and generated module works too.

best regards,
taavi




More information about the erlang-questions mailing list