[erlang-patches] compile: asm and core options
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]).
2> compile:file(foo, [gazonk]).
(same with erlc, I believe).
In contrast, the HiPE compiler issues a warning in such cases:
3> hipe:c(foo, [gazonk]).
<HiPE (v 22.214.171.124)> Warning: [hipe:1515]: Unknown options: [gazonk].
which has saved me multiple times when mistyping options...
More information about the erlang-patches