Re: nasm over gas?
From: Jörn Engel (joern_at_wohnheim.fh-wedel.de)
Date: 09/13/03
- Previous message: Patrick Mochel: "Re: 2.6.0-test[45]: enable swsusp?"
- In reply to: Ricardo Bugalho: "Re: nasm over gas?"
- Next in thread: Jamie Lokier: "Re: nasm over gas?"
- Reply: Jamie Lokier: "Re: nasm over gas?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 13 Sep 2003 00:17:17 +0200 To: Ricardo Bugalho <ricardo.b@zmail.pt>
On Fri, 12 September 2003 18:27:29 +0100, Ricardo Bugalho wrote:
> On Fri, 2003-09-12 at 16:26, insecure wrote:
>
> > How can you know that it won't evict useful code?
>
> a) the code is at the beginning of the program
> b) its only run once
>
> Therefore, its impact on i-cache is a non-issue.
> > > You can complain about the time it gets to fetch the code from
> > > RAM though.
Non-issue, eh? ;)
> I'll assume the goal is speed, not code size. Lets look at that piece of
> code:
> a) its only run once, so it doesn't benefict of caching
While it may not benefit from caching, cache misses still hurt it.
And as it is only run once, there are only cache misses (ignoring the
cacheline effect). Shorter code is faster code.
> In modern, general purpose, computer systems, code size is irrelevant.
> It has been for 15 years and its not going to change.
- How long does you 50MB word processor take to load?
- Why do dietlibc and friends speed up server workloads?
- Why has Alan measured faster kernels with -Os than with -O2?
Code size *does* matter.
Jörn
-- Victory in war is not repetitious. -- Sun Tzu - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Previous message: Patrick Mochel: "Re: 2.6.0-test[45]: enable swsusp?"
- In reply to: Ricardo Bugalho: "Re: nasm over gas?"
- Next in thread: Jamie Lokier: "Re: nasm over gas?"
- Reply: Jamie Lokier: "Re: nasm over gas?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|