Re: nasm over gas?

From: Jörn Engel (joern_at_wohnheim.fh-wedel.de)
Date: 09/13/03

  • Next message: Patrick Mochel: "Re: [linux-2.4.0-test5] swsusp w/o swap fail..."
    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/
    

  • Next message: Patrick Mochel: "Re: [linux-2.4.0-test5] swsusp w/o swap fail..."

    Relevant Pages

    • Re: Block Device Caching
      ... > data does not go into any cache. ... > This lead us to the conclusion that block devices do not cache, ... > while when unmounting the partition, caching does not work. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: 2.7 (future kernel) wish
      ... > cache writes by default. ... It is in Device Manager, ... You can also enable write caching, ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: why swap at all?
      ... > Caching the file really doesn't help in this case. ... having useful stuff pushed out of the cache. ... likely to break other corner cases by fixing the ones we ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [PATCH] scsi/sata write barrier support
      ... >>I am thinking the barrier support should know if the write cache is ... Since nobody snoops the MODE SELECT on the caching page, ... I think barrier support should know about that sort ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re[2]: [PHP] dynamic -> static
      ... As I wrote already this issue is mainly because of search engines ... incompatibility with dynamic content sites (to be more exact - with ... You can cache your code using PHP Accelerator or Turck ... MM> implementing a caching layer between your application and your database. ...
      (php.general)