[erlang-bugs] Enhancement to compiler-4.5.4 documentation

Bjorn Gustavsson bgustavsson@REDACTED
Sun Oct 5 08:18:24 CEST 2008


2008/10/4 Edwin Fine <erlang-questions_efine@REDACTED>

> In the documentation for compiler-4.5.4, in the options it states
> export_all Causes all functions in the module to be exported.This does not
> explain that previously inlined functions become "uninlined" and are also
> exported. I suggest changing this to the following:
>
Are you sure about "uninlined"?

The expected behavior is that exported functions are still inlined, but
still kept as a exported functions. Examining
the assembly code for the following module

-module(t).

-compile(export_all).
-export([t/0]).
-compile({inline,[{foo,0}]}).

t() ->
    foo().

foo() ->
    42.

it can be seen that the call to foo/0 has been replaced with 42 in t/0.

export_all Causes all functions in the module to be exported*, including
> functions that are declared as inline.*I think it's rather important to
> know this.
>

Why? The functions are still being inlined as expected.

/Bjorn

-- 
Björn Gustavsson, Erlang/OTP, Ericsson AB
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-bugs/attachments/20081005/8d31a97c/attachment.htm>


More information about the erlang-bugs mailing list