[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Translators code duplicated? (weird question)
From: |
Marcus Brinkmann |
Subject: |
Re: Translators code duplicated? (weird question) |
Date: |
Fri, 25 Jan 2002 17:13:23 +0100 |
User-agent: |
Mutt/1.3.25i |
On Fri, Jan 25, 2002 at 10:29:59AM -0500, Ludovic Courtès wrote:
> > Well, the binaries are shared, just as any program is on Unix. If
> > fifteen people are all running emacs, they all share the same code
> > segment for the emacs program. Same for Hurd servers.
>
> Ok, I didn't know about it. But I'm wondering how, and which part of the OS
> `recognizes' that such or such executable has already been loaded and is
> available at such address?
It's the pager in the filesystem server. If you io_map the same file twice,
you get the same memory object in both cases. See ext2fs/pager.c and
libdiskfs/io-map.c, esp the function diskfs_get_filemap.
Marcus
--
`Rhubarb is no Egyptian god.' Debian http://www.debian.org brinkmd@debian.org
Marcus Brinkmann GNU http://www.gnu.org marcus@gnu.org
Marcus.Brinkmann@ruhr-uni-bochum.de
http://www.marcus-brinkmann.de