public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Alan McKinnon <alan.mckinnon@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Re: 32bit or 64bit
Date: Thu, 19 Jul 2012 23:42:24 +0200	[thread overview]
Message-ID: <20120719234224.64329321@khamul.example.com> (raw)
In-Reply-To: <CA+czFiBPNSw01MfYepBcbmxMk0QwNzBjutGQuc7rJSj8J=+ROg@mail.gmail.com>

On Thu, 19 Jul 2012 10:06:18 -0400
Michael Mol <mikemol@gmail.com> wrote:

> On Thu, Jul 19, 2012 at 9:43 AM, Alan McKinnon
> <alan.mckinnon@gmail.com> wrote:
> > On Thu, 19 Jul 2012 16:31:42 +0300
> > Nikos Chantziaras <realnc@gmail.com> wrote:
> >
> >> On 19/07/12 16:03, Michael Mol wrote:
> >> > On Thu, Jul 19, 2012 at 8:55 AM, Nikos Chantziaras
> >> > <realnc@gmail.com> wrote:
> >> >> Interesting that Wine aims to do the WOW64 thing.  That's
> >> >> certainly news to me :-)
> >> >
> >> > Not really surprising. There's an IsWow64Process() in the Windows
> >> > API to allow processes to detect the nature of the environment
> >> > they're running on, since sometimes that's something you need to
> >> > know. :)
> >>
> >> WOW64 relies on 32-bit libraries to do it's job though.  It's well
> >> known that 32-bit code cannot link against 64-bit libraries.  If
> >> building a 64-bit only version of Wine (since you cannot build any
> >> 32-bit code on non-multilib Gentoo), the question arises on how
> >> Wine is doing it.
> >>
> >>
> >
> > Stupid question incoming:
> >
> > What's the WOW in WOW64?
> >
> > The more I read it as World of Warcraft the more I see that it
> > doesn't actually fit :-)
> 
> WOW64 is Windows On Windows 64-bit. It's how 32-bit Windows
> applications run on 64-bit Windows.
> 
> By and large, the way 32-bit and 64-bit applications and libraries can
> communicate with each other are very limited. 64-bit programs can't
> load 32-bit libraries, and vice versa. Some environment variables
> containing path information are switched out depending on if the
> program is 32-bit or 64-bit. Accesses to some registry paths are
> shunted to one place or another, depending on if the program is 32-bit
> or 64-bit.
> For system libraries, 64-bit windows provides both 32-bit and 64-bit
> versions of supported libraries, rather like multilib environments on
> Linux.
> 
> In essence, if you get 64-bit Windows, you're getting two copies of
> Windows, a 64-bit version and a 32-bit version, and the kernel shunts
> 32-bit programs into the 32-bit version while maintaining a reasonably
> high degree of interoperability; it's not a complete sandbox.
> 
> 32-bit and 64-bit processes can still communicate with each other.
> mmap()'d files still work the same way, as the filesystem paths don't
> change. Named objects such as pipes, events, mutexes...all of those
> are handled by the kernel, which has mapping code to allow 32-bit and
> 64-bit processes to independently gain handles on the same named
> objects. (Subject to security attributes and restrictions, of course.)
> 
> But, yeah. That's "Windows, on Windows 64-bit", or WOW64.

thanks, that makes sense

> 
> (P.S. For the Horde!)

:-)

-- 
Alan McKinnon
alan.mckinnon@gmail.com




  parent reply	other threads:[~2012-07-19 21:45 UTC|newest]

Thread overview: 45+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-17  2:22 [gentoo-user] 32bit or 64bit Nilesh Govindrajan
2012-07-17  2:39 ` [gentoo-user] " »Q«
2012-07-17  2:52 ` [gentoo-user] " Mark Knecht
2012-07-17  3:04   ` Michael Mol
2012-07-17  3:29     ` Mark Knecht
2012-07-17  4:23       ` Michael Mol
2012-07-17 14:18         ` Mark Knecht
2012-07-17 14:32           ` Michael Mol
2012-07-18 11:20             ` Neil Bothwick
2012-07-17 13:36     ` Pandu Poluan
2012-07-17 13:49       ` Leiking
2012-07-17 14:04         ` Nilesh Govindrajan
2012-07-17 16:34           ` Volker Armin Hemmann
2012-07-17  3:36   ` Bill Kenworthy
2012-07-17  4:25     ` Michael Mol
2012-07-17  6:25     ` J. Roeleveld
2012-07-17  7:05 ` Volker Armin Hemmann
2012-07-17  8:57 ` [gentoo-user] " Nikos Chantziaras
2012-07-17 16:31 ` [gentoo-user] " Volker Armin Hemmann
2012-07-17 16:38   ` Michael Mol
2012-07-17 16:43   ` Alecks Gates
2012-07-17 20:57     ` [gentoo-user] " Nikos Chantziaras
2012-07-17 21:14       ` Alecks Gates
2012-07-19 12:55         ` Nikos Chantziaras
2012-07-19 13:03           ` Michael Mol
2012-07-19 13:31             ` Nikos Chantziaras
2012-07-19 13:43               ` Alan McKinnon
2012-07-19 13:53                 ` Michael Hampicke
2012-07-19 14:06                 ` Michael Mol
2012-07-19 14:14                   ` Nikos Chantziaras
2012-07-19 14:33                     ` Michael Mol
2012-07-19 21:42                   ` Alan McKinnon [this message]
2012-07-17 21:21       ` Paul Hartman
     [not found]         ` <CAHgBc-sQm0VVUGHWG8E2q=DGKs_iaMHsmw1-5s-F7ozvX_vsKg@mail.gmail.com>
2012-07-18  2:19           ` Nilesh Govindrajan
2012-07-17 16:44   ` [gentoo-user] " Mark Knecht
2012-07-17 18:13     ` Michael Hampicke
2012-07-17 18:23       ` Mark Knecht
2012-07-17 18:32         ` Michael Mol
2012-07-17 18:47           ` Michael Hampicke
2012-07-17 18:49           ` Mark Knecht
2012-07-17 18:58             ` Michael Mol
2012-07-17 19:18               ` Mark Knecht
2012-07-19  5:34             ` J. Roeleveld
2012-07-19 12:57               ` Mark Knecht
2012-07-19 16:30                 ` Volker Armin Hemmann

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=20120719234224.64329321@khamul.example.com \
    --to=alan.mckinnon@gmail.com \
    --cc=gentoo-user@lists.gentoo.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox