[m-dev.] diff: pragma no_inline
Tyson Richard DOWD
trd at cs.mu.oz.au
Fri Jun 27 13:07:50 AEST 1997
> On Fri, 27 Jun 1997, Tyson Richard DOWD wrote:
>
> > This change implements `:- pragma no_inline'.
>
> Out of curiosity, why would anyone want a :- pragma no_inline?
- Inlining sometimes causes too much code bloat (it can inline pragma
c_codes even if they are quite big).
- Debugging inlining (and code generation bugs) is easier if you
can selective stop inlining in test cases. (just deleting the calls
often makes the bug go away). This is the main reason.
- Some C code is not safe to inline. Static data and tailcalls are two
of these. (There are other solutions to this, but sometimes they
aren't very efficient).
--
Tyson Dowd #
# Surreal humour isn't eveyone's cup of
trd at cs.mu.oz.au # fur.
http://www.cs.mu.oz.au/~trd #
More information about the developers
mailing list