[compiler-hacking] @inline attribute?

Pierre Chambart pierre.chambart at ocamlpro.com
Thu Oct 30 16:19:29 GMT 2014


On 30/10/2014 17:15, Jeremie Dimino wrote:
> On Thu, Oct 30, 2014 at 2:42 PM, Leo White <lpw25 at cam.ac.uk
> <mailto:lpw25 at cam.ac.uk>> wrote:
>
>     I'd like it to go one step further and give a warning or error if
>     inlining could not be done for some reason (e.g. .cmx file not
>     present). I think this is very much inline with OCaml's philosophy of
>     predictable performance -- rather than just hope that the compiler
>     inlines something I can be certain of it.
>
>
> Agreed. And an opposite attribute to ensure a function is not inlined
> would be useful too.
>
> -- 
> Jeremie
Why would you need something like that ?
-- 
Pierre
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ocaml.org/pipermail/cam-compiler-hacking/attachments/20141030/719fe445/attachment.html>


More information about the Cam-compiler-hacking mailing list