public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: Ming Cheng <chengm349@hotmail.com>
To: Jonathan Wakely <jwakely.gcc@gmail.com>, gcc-help <gcc-help@gcc.gnu.org>
Cc: gcc-help <gcc-help@gcc.gnu.org>
Subject: Re: Fw: binary size
Date: Wed, 5 Jan 2022 09:15:29 +0000	[thread overview]
Message-ID: <SI2PR03MB52423A54C74AF99B4649C652FB4B9@SI2PR03MB5242.apcprd03.prod.outlook.com> (raw)
In-Reply-To: <CAH6eHdRC2Ef8qFM=JDT3uwqGesfo8+7vTst5y4rpY62dYMG+Kw@mail.gmail.com>

Hi Jonathan,
Got it . Newer g++ could handle inline function better for example(plus other improvement); which could also increase binary size. These possibly added code is reflected in text section mostly.

Cheers
Ming
________________________________
From: Jonathan Wakely <jwakely.gcc@gmail.com>
Sent: Wednesday, January 5, 2022 8:13 AM
To: Ming Cheng <chengm349@hotmail.com>
Cc: gcc-help <gcc-help@gcc.gnu.org>
Subject: Re: Fw: binary size



On Wed, 5 Jan 2022, 08:11 Ming Cheng via Gcc-help, <gcc-help@gcc.gnu.org<mailto:gcc-help@gcc.gnu.org>> wrote:


Hi Jonathan,

Thanks for this nice advice. I'd like to learn more about cmd size. Among text/data/bss sections, which section(s) has the most impact to the perf? You are right that people should do actual test. But for the same code, in theory, larger size's perf should be always <= smaller size's .


Not necessarily. Function inlining can increase size but also increase performance. You need to measure.



      reply	other threads:[~2022-01-05  9:15 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <MW3PR18MB3675DED196E7FA7E19455E15804A9@MW3PR18MB3675.namprd18.prod.outlook.com>
2022-01-04  2:12 ` Ming Cheng
2022-01-04  7:53   ` Jonathan Wakely
2022-01-04 11:42     ` Ming Cheng
2022-01-04 11:46       ` Ming Cheng
2022-01-04 12:12       ` Jonathan Wakely
     [not found]         ` <SI2PR03MB5242FA109CAEDEBF0896B2AAFB4B9@SI2PR03MB5242.apcprd03.prod.outlook.com>
2022-01-05  8:10           ` Ming Cheng
2022-01-05  8:13             ` Jonathan Wakely
2022-01-05  9:15               ` Ming Cheng [this message]

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=SI2PR03MB52423A54C74AF99B4649C652FB4B9@SI2PR03MB5242.apcprd03.prod.outlook.com \
    --to=chengm349@hotmail.com \
    --cc=gcc-help@gcc.gnu.org \
    --cc=jwakely.gcc@gmail.com \
    /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).