Re: compile: asm and core options
Kostis Sagonas <[email protected]> Fri, 13 Dec 2013 15:41:46 +0200
| Newsgroups | gmane.comp.lang.erlang.patches |
|---|---|
| Message-ID | <[email protected]> |
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
_______________________________________________
erlang-patches mailing list
[email protected]
http://erlang.org/mailman/listinfo/erlang-patches