🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.g++
Article #104

Inline functions give faster compilation!

#104
From: Bryan Boreham
Date: Sun, 27 Aug 1989 17:57
17 lines
1044 bytes
I recently noticed, much to my amazement, that using the
-finline-functions switch can give a sizeable reduction in
compile-time. Here is an example:

kewill% time g++ micky.c -S -I../../src
33.4u 4.2s 0:54 69% 280+784k 109+89io 3pf+0w
kewill% time g++ micky.c -S -I../../src -finline-functions
26.2u 2.5s 0:31 90% 272+1120k 72+62io 3pf+0w

"micky.c" is a demo program from ET++ that is around 2K long; 148K
pre-processed.

I guess your mileage may vary, depending on the number of in-class
functions you have. Also, version 1.35 will sometimes core-dump when
using -finline-functions. This is fixed in 1.36.

Bryan.
Technical Details
Message-ID: <8908271757.AA03233@edinburgh.kewill.uucp>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!UUNET.UU.NET!kewill!bryan

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!UUNET.UU.NET!kewill!bryan
From: kewill!bryan@UUNET.UU.NET (Bryan Boreham)
Newsgroups: gnu.g++
Subject: Inline functions give faster compilation!
Message-ID: <8908271757.AA03233@edinburgh.kewill.uucp>
Date: 27 Aug 89 17:57:43 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 17