From: Ed Sweetman <ed.sweetman@wmich.edu>
To: Sam Ravnborg <sam@ravnborg.org>
Cc: Michal Semler <cijoml@volny.cz>, linux-kernel@vger.kernel.org
Subject: Re: passing my own compiler options into linux kernel compiling
Date: Thu, 24 Jul 2003 17:41:09 -0400 [thread overview]
Message-ID: <3F205275.3080403@wmich.edu> (raw)
In-Reply-To: <20030724205837.GA1176@mars.ravnborg.org>
Sam Ravnborg wrote:
> On Thu, Jul 24, 2003 at 09:16:17AM +0200, Michal Semler wrote:
>
>>Hello,
>>
>>I use gcc-3.3 and I would like compile my kernel with flags:
>>
>>-O4 -march=pentium3 -mcpu=pentium3
-mcpu is taken care of by -march in gcc3
-O4 does nothing, -O3 is the highest gcc3 goes, and -O3 does cause
problems with certain code.
I'd suggest also -ftracer as it is supposed to help your standard -O2
level optimizations do their jobs. How well, probably not very noticable
in real life, but then neither is -march=pentium3 over i686.
>>Is there any way to do this?
>
> Only way to specify -O4 is to manually edit top-level Makefile.
> Change the assignment to CFLAGS (not hOSTCFLAGS as someone suggested).
>
> The -m options are set in arch/i386/Makefile.
> The best way to set them is to select the correct processor type.
>
> Sam
>
basically, makefiles are supposed to add the value of CFLAGS to their
flag variable. CXXFLAGS for c++ arguments. But i understand why the
kernel doesn't do this since it needs strict management over the build.
next prev parent reply other threads:[~2003-07-24 21:26 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-07-24 7:16 passing my own compiler options into linux kernel compiling Michal Semler
2003-07-24 7:59 ` Hacksaw
2003-07-24 8:01 ` Martin Zwickel
2003-07-24 8:50 ` Michal Semler
2003-07-24 8:55 ` Christoph Hellwig
2003-07-24 9:31 ` J.A. Magallon
2003-07-24 9:41 ` J.A. Magallon
2003-07-24 12:35 ` James H. Cloos Jr.
2003-07-24 20:58 ` Sam Ravnborg
2003-07-24 21:41 ` Ed Sweetman [this message]
2003-07-24 23:27 ` Kurt Wall
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=3F205275.3080403@wmich.edu \
--to=ed.sweetman@wmich.edu \
--cc=cijoml@volny.cz \
--cc=linux-kernel@vger.kernel.org \
--cc=sam@ravnborg.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 NNTP newsgroup(s).