Making sure lightweight inline functions really are lightweight (was:

Dave Dave_member at pathlink.com
Wed Mar 22 09:21:15 PST 2006


In article <dvrt27$1247$1 at digitaldaemon.com>, Stewart Gordon says...
>
>d-bugmail at puremagic.com wrote:
>> http://d.puremagic.com/bugzilla/show_bug.cgi?id=67
><snip>
>
>This brings me to something I've been thinking lately.
>
>http://www.digitalmars.com/d/pretod.html
>
<original:
http://www.digitalmars.com/drn-bin/wwwnews?digitalmars.D.bugs/6769
snipped to shorten>

The code bloat thing may actually not be an issue, believe it or not, because
some exe's (not libraries, but the things actually executed) are actually
smaller when inlining is done, because futher speed and *size* optimizations can
then be done on the inlined code by the backend optimizer. I think DMD has real
good hueristics for determining what and what not to inline and I know code size
plays *the* major role in that.

See: http://www.digitalmars.com/d/archives/digitalmars/D/31013.html

- Dave





More information about the Digitalmars-d-bugs mailing list