public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: Ryan Mansfield <RMansfield@qnx.com>
To: "'ilejn@yandex.ru'" <ilejn@yandex.ru>, gcc-help@gcc.gnu.org
Subject: RE: -Os in conjunction with -fno-inline
Date: Fri, 30 Sep 2005 05:41:00 -0000	[thread overview]
Message-ID: <3518719F06577C4F85DA618E3C37AB910138920E@nimbus.ott.qnx.com> (raw)


The idea of inlining is to remove function prologues and epilogues. When you
set -fno-inline, the functions do not get inlined and the prologues and
epilogues account for the slight increase in size.

Inlining can result in some code bloat when procedure cloning is done.

Regards,

Ryan Mansfield

 

-----Original Message-----
From: gcc-help-owner@gcc.gnu.org [mailto:gcc-help-owner@gcc.gnu.org] On
Behalf Of Ilja Golshtein
Sent: Friday, September 30, 2005 1:26 AM
To: gcc-help@gcc.gnu.org
Subject: -Os in conjunction with -fno-inline

Hello!

I've came across with a strange thing.
After adding "-fno-inline" to g++ command line just after "-Os" size of
binary was slightly increased.

Two question. Why any difference exists? Why size increased not reduced? The
code   optimized indeed.

I use gcc 3.2.2 from RH 9.0 distribution.
No optimization related options besides mentioned above.

Thanks.

--
Best regards
Ilja Golshtein

             reply	other threads:[~2005-09-30  5:41 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-30  5:41 Ryan Mansfield [this message]
2005-09-30  5:51 ` Ilja Golshtein
  -- strict thread matches above, loose matches on Subject: below --
2005-09-30  5:25 Ilja Golshtein

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3518719F06577C4F85DA618E3C37AB910138920E@nimbus.ott.qnx.com \
    --to=rmansfield@qnx.com \
    --cc=gcc-help@gcc.gnu.org \
    --cc=ilejn@yandex.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).