public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: NightStrike <nightstrike@gmail.com>
To: Mike Rejsa <mikerejsa@gmail.com>
Cc: gcc-help <gcc-help@gcc.gnu.org>
Subject: Re: Executable size
Date: Sat, 21 Jan 2023 08:16:29 -0500	[thread overview]
Message-ID: <CAF1jjLtYTN+jEVqbq7crh4gte2KAjQU6aV_22HTQaUDVP4Srxw@mail.gmail.com> (raw)
In-Reply-To: <C1829EC6-C029-4E85-A6E6-1C46E0FF8870@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 482 bytes --]

On Fri, Jan 20, 2023, 22:47 Mike Rejsa via Gcc-help <gcc-help@gcc.gnu.org>
wrote:

> Hi, new to gcc, running 32b on an old Win-XP notebook.
>
> When I compile small utilities (say, treesort or equivalent, just console
> output) I get executables that are from 10-16 times larger as with my
> previous compiler (a 16b Aztec). Something that compiles to 7-8k with the
> Aztec is 100k+ with gcc. Why is this?
>
> TIA
> miker
>

Strip them afterwards. There's also -Os as an option.

>

  reply	other threads:[~2023-01-21 13:16 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-21  3:47 Mike Rejsa
2023-01-21 13:16 ` NightStrike [this message]
  -- strict thread matches above, loose matches on Subject: below --
2002-09-25 11:34 Douglas Richardson
2002-09-25 10:57 Douglas Richardson
2002-09-25 10:55 Chris Croswhite

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=CAF1jjLtYTN+jEVqbq7crh4gte2KAjQU6aV_22HTQaUDVP4Srxw@mail.gmail.com \
    --to=nightstrike@gmail.com \
    --cc=gcc-help@gcc.gnu.org \
    --cc=mikerejsa@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).