From: Ralf Baechle <ralf@linux-mips.org>
To: Long Li <long21st@yahoo.com>
Cc: linux-mips@linux-mips.org
Subject: Re: register declared variable for no optimization
Date: Fri, 31 Jan 2003 03:20:52 +0100 [thread overview]
Message-ID: <20030131032052.A7245@linux-mips.org> (raw)
In-Reply-To: <20030130231119.65802.qmail@web40412.mail.yahoo.com>; from long21st@yahoo.com on Thu, Jan 30, 2003 at 03:11:19PM -0800
On Thu, Jan 30, 2003 at 03:11:19PM -0800, Long Li wrote:
> Why the gcc-3.0.4 did the weird stuff? Do I have to
> use at least level 1 to make the register declared
> work for it?
Most modern C compilers simply ignore the register specifier because in
practice it would result in worse code and as for code quality the
result of -O0 are not of interest anyway.
Linux code must be optmized at least -O1 or it probably won't build or
work properly.
Ralf
prev parent reply other threads:[~2003-01-31 2:20 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-01-30 23:11 register declared variable for no optimization Long Li
2003-01-31 2:20 ` Ralf Baechle [this message]
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=20030131032052.A7245@linux-mips.org \
--to=ralf@linux-mips.org \
--cc=linux-mips@linux-mips.org \
--cc=long21st@yahoo.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.