All of lore.kernel.org
 help / color / mirror / Atom feed
From: Randolph Chung <tausq@debian.org>
To: John David Anglin <dave@hiauly1.hia.nrc.ca>
Cc: parisc-linux@lists.parisc-linux.org
Subject: Re: [parisc-linux] mmap and GCC precompiled headers
Date: Thu, 15 Jul 2004 23:22:13 -0700	[thread overview]
Message-ID: <20040716062213.GJ546@tausq.org> (raw)
In-Reply-To: <200407152226.i6FMQVK4029018@hiauly1.hia.nrc.ca>

> However, when GCC tries to remap the PCH file to this location, it
> sometimes fails.  This is currently a fatal error (i.e., it does not
> fallback as described above).  This needs looking at.  Almost all
> the libstdc++ tests failed in the last build that I did.  I think if
> it successfully loads the PCH file and finds that it's not valid,
> it does fallback.

do you mean that, when the pch file is created, it was mmaped to some
address, and that address is written to the file. when the pch file is
read later on for another compile, it tries to mmap it to the same
location, and if it cannot, then it fails?

there's obviously a performance penalty, but is this an option (not very
sure it will work, but i think it might)?

1. mmap the file to addr1, where addr1 is any address returned by the
   kernel
2. do a MAP_PRIVATE anonymous mmap to the desired location addr2 (this 
   is more likely to be honoured by the kernel....)
3. memcpy the data from addr1 to addr2

obviously this assumes you are not changing the pch data...

randolph
-- 
Randolph Chung
Debian GNU/Linux Developer, hppa/ia64 ports
http://www.tausq.org/
_______________________________________________
parisc-linux mailing list
parisc-linux@lists.parisc-linux.org
http://lists.parisc-linux.org/mailman/listinfo/parisc-linux

  reply	other threads:[~2004-07-16  6:22 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-15 20:25 [parisc-linux] mmap and GCC precompiled headers John David Anglin
2004-07-15 20:39 ` Matthew Wilcox
2004-07-15 21:34   ` John David Anglin
2004-07-15 21:43     ` Randolph Chung
2004-07-15 21:50     ` Matthew Wilcox
2004-07-15 22:26       ` John David Anglin
2004-07-16  6:22         ` Randolph Chung [this message]
2004-07-16 16:44           ` John David Anglin

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=20040716062213.GJ546@tausq.org \
    --to=tausq@debian.org \
    --cc=dave@hiauly1.hia.nrc.ca \
    --cc=parisc-linux@lists.parisc-linux.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 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.