public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: "relliott@umn.edu" <relliott@umn.edu>
To: gcc-help@gcc.gnu.org
Subject: High memory usage compiling large ‘xxd -i’ output
Date: Sat, 11 Apr 2020 15:03:04 -0500	[thread overview]
Message-ID: <84BAF17A-8E6A-45E6-B8EC-D697A7D64230@umn.edu> (raw)

Hello,

I’m seeing gcc memory usage exceed 15GB when compiling a source file generated from the command:

% xxd -i file.txt

where ‘file.txt’ is a 170MB file.

Is there a way to avoid this high memory usage?  Can anyone explain why it occurs?

Thanks,

Ryan Elliott

             reply	other threads:[~2020-04-11 20:03 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-11 20:03 relliott [this message]
2020-04-11 21:22 ` Jonathan Wakely
2020-04-11 21:31   ` relliott
2020-04-12  2:07     ` Xi Ruoyao
2020-04-12 22:01       ` relliott

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=84BAF17A-8E6A-45E6-B8EC-D697A7D64230@umn.edu \
    --to=relliott@umn.edu \
    --cc=gcc-help@gcc.gnu.org \
    /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).