Bug 15930 - Excessive memory usage assembling file
Summary: Excessive memory usage assembling file
Status: NEW
Alias: None
Product: binutils
Classification: Unclassified
Component: gas (show other bugs)
Version: 2.23
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-04 12:29 UTC by Richard Biener
Modified: 2013-09-04 14:00 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Richard Biener 2013-09-04 12:29:01 UTC
Assembling the file that I'll momentarily try to attach requires 6.5GB of memory on a x86_64 host using gas 2.23.2 and the assembler command

/usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../x86_64-suse-linux/bin/as -v -I . -I ../.. -I ../../src -I ../../src -I ../../utils -I ../../tests --64 -o mipproblem1.o mipproblem1.s

That seems a little excessive for assembler memory usage.
Comment 1 Richard Biener 2013-09-04 12:39:24 UTC
Ok, the assembler file is 1GB in size and doesn't compress enough.  It can
be generated by compiling the testcase at gcc.gnu.org/PR58315 with GCC 4.8
and -O2 -g on x86_64.

Or you can download it from http://gcc.opensuse.org/mipproblem1.s.bz2
(it should appear there in not too distant future)
Comment 2 Alan Modra 2013-09-04 14:00:27 UTC
According to as --statistics, 3.5G of that is in 28046869 fixups, most of which I would guess are in debug sections.