GNU bug report logs - #23474
Gzip and CFLAGS

Previous Next

Package: gzip;

Reported by: Tom Smith <gnuacc2016 <at> gmail.com>

Date: Sat, 7 May 2016 02:44:01 UTC

Severity: normal

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 23474 in the body.
You can then email your comments to 23474 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gzip <at> gnu.org:
bug#23474; Package gzip. (Sat, 07 May 2016 02:44:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Tom Smith <gnuacc2016 <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gzip <at> gnu.org. (Sat, 07 May 2016 02:44:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Tom Smith <gnuacc2016 <at> gmail.com>
To: bug-gzip <at> gnu.org
Subject: Gzip and CFLAGS
Date: Fri, 6 May 2016 21:15:15 -0400
[Message part 1 (text/plain, inline)]
Hello there,


            After having compiled gzip, I had looked at the Makefile
“./configure” generated.

            Looking at CFLAGS=”” (system configuration section), not many
compiler flags are specified for optimization.

            The “Specific Targets” section sets different flags for
different systems, which are set accordingly.

            Currently, I am looking at “CFLAGS= -O”.


            I noticed that some optimization flags were not set (curious as
to why):

-         -march=native (pentium3, athlon64, etc) (produces code for the
specific architecture specified)

-         -O2 (recommended level to use to increase code performance )

-         -pipe (makes compilation process faster)

-         -fomit-frame-pointer (reduces generated code size)


Also, I found this article
http://lists.gnu.org/archive/html/bug-gzip/2013-02/msg00000.html and it
mentions setting –O2 and encountering an issue (it has since been fixed).

After running some tests after I recompiled (Linux), sometimes I noticed it
to be a little bit faster (at times) on x86_64.

Note: There are many different conditions that cause the numbers to
fluctuate, such as: # of processes running, ram usage, CPU power etc.




Thank You
[Message part 2 (text/html, inline)]

Reply sent to Paul Eggert <eggert <at> cs.ucla.edu>:
You have taken responsibility. (Sat, 07 May 2016 02:53:02 GMT) Full text and rfc822 format available.

Notification sent to Tom Smith <gnuacc2016 <at> gmail.com>:
bug acknowledged by developer. (Sat, 07 May 2016 02:53:02 GMT) Full text and rfc822 format available.

Message #10 received at 23474-done <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Tom Smith <gnuacc2016 <at> gmail.com>, 23474-done <at> debbugs.gnu.org
Subject: Re: bug#23474: Gzip and CFLAGS
Date: Fri, 6 May 2016 19:52:26 -0700
Tom Smith wrote:

>             Currently, I am looking at “CFLAGS= -O”.

You don't mention which gzip version. If you haven't already, please try the
current version, gzip 1.8. Its 'configure' script should default to -O2
optimization for GCC, and to no optimization for other compilers. To some extent
this is arbitrary. Tweaking this further is up to you. For example,
-march=native is better for some usages but not for others, which is why it is
not the default.





bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 04 Jun 2016 11:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 9 years and 11 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.