[erlang-patches] compile: asm and core options

Kostis Sagonas kostis@REDACTED
Fri Dec 13 14:41:46 CET 2013


On 12/13/13 15:26, Björn Gustavsson wrote:
> By deprecating, do you mean printing a message when the 'asm' option is used
> and internally translate it to 'to_asm'?


This probably does not belong to this thread, but since there is some 
discussion about compiler options and printing messages going on, can I 
please ask/propose that the BEAM compiler becomes a bit more verbose 
when unrecognized or unknown options are given to it?

Currently, we have:

Eshell V5.10.4  (abort with ^G)
1> c(foo, [gazonk]).
{ok,foo}
2> compile:file(foo, [gazonk]).
{ok,foo}

(same with erlc, I believe).


In contrast, the HiPE compiler issues a warning in such cases:

3> hipe:c(foo, [gazonk]).
<HiPE (v 3.10.2.2)> Warning: [hipe:1515]: Unknown options: [gazonk].
{ok,foo}

which has saved me multiple times when mistyping options...

Kostis



More information about the erlang-patches mailing list