From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18597 invoked by alias); 25 Apr 2014 22:29:14 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 18579 invoked by uid 89); 25 Apr 2014 22:29:13 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-ig0-f175.google.com Received: from mail-ig0-f175.google.com (HELO mail-ig0-f175.google.com) (209.85.213.175) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Fri, 25 Apr 2014 22:29:11 +0000 Received: by mail-ig0-f175.google.com with SMTP id h3so2766245igd.2 for ; Fri, 25 Apr 2014 15:29:09 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=F7Oxcv2gP22vHcGoONz58FnvIXBB+/5kpejHPx8SB7c=; b=lrT9HNSy5WCc88miV/HYrc46e62y7yPrUyIM4nmLGRpD7mi29AGtaLAXbpn7gJDq6D WKlYL3w1K4SkliyHIn27Ngoi/Yf60Zqn85SefL/qmmBtXJx/wj0dI4WBlpNJffpF5AOu IgX7vdlRk/HMSMhIr9aB2ZsL6ZpkSEPEq4ne2eYXIMXLTqxMJSy6V4X7EbdJb5q++r0B YBKpXVzOkL9CCgMw4nTW8D6rcn3IuM6KSGgKuM3vnacus5/LXz8azFhqVk/yCO/1BWTD VuiZSplpLn+LFxALK497EnnW2nVWRX1uaiNaq8qeWfULm0nLwzt1CZ1x2iTxTN/IcEIA z0hQ== X-Gm-Message-State: ALoCoQkIS3QAUNSKIbYO9kxL4G0uyTuXV07g1ZC9NFdkY3ElINyoyFkOxnz31zSpfDqbk50mXzHx X-Received: by 10.43.180.133 with SMTP id pe5mr3878746icc.71.1398464949534; Fri, 25 Apr 2014 15:29:09 -0700 (PDT) Received: from [192.168.2.237] (76-219-158-219.lightspeed.iplsin.sbcglobal.net. [76.219.158.219]) by mx.google.com with ESMTPSA id rt10sm101421igb.15.2014.04.25.15.29.08 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 25 Apr 2014 15:29:09 -0700 (PDT) Message-ID: <535AE1AE.7060205@breisch.org> Date: Fri, 25 Apr 2014 22:29:00 -0000 From: "Chris J. Breisch" User-Agent: Postbox 3.0.9 (Windows/20140128) MIME-Version: 1.0 To: cygwin@cygwin.com Subject: Re: 64-bit vs. 32-bit References: <535AD731.8040809@etr-usa.com> In-Reply-To: <535AD731.8040809@etr-usa.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2014-04/txt/msg00595.txt.bz2 Warren Young wrote: > On 4/25/2014 11:26, Tom Szczesny wrote: >> >> CYGWIN_NT-6.1-WOW64 > > "WOW64" means 32-bit Windows emulated on top of 64-bit Windows.[1] This > tells you that Cygwin is running inside that 32-bit environment. > [snip] > You don't have to guess and hope, though. From 32-bit Cygwin: > > $ file /bin/ls > /bin/ls: PE32 executable (console) Intel 80386 (stripped to external > PDB), for MS Windows > > $ file /cygdrive/c/cygwin64/bin/ls > /cygdrive/c/cygwin64/bin/ls: PE32+ executable (console) x86-64, for MS > Windows > > file(1) saith sooth what what form of executable thou hast wrought. > > You might also find this piece enlightening: http://goo.gl/qv5ki7 > > That is enlightening. I have a rather different, and very non-standard setup, making use of $PROCESSOR_ARCHITECTURE. This environment variable is set in both 32-bit and 64-bit Cygwin. In the former, it's set to "x86" and in the latter, it's set to "AMD64". So, I have my 64-bit Cygwin root set to C:/cygwin/AMD64, and my 32-bit Cygwin root set to C:/cygwin/x86. My package root for both is C:\cygwin\packages, and I have /home in both environments mounted on C:/cygwin/home. I script all my builds, and the script I use sets the build directory always to build_${PROCESSOR_ARCHITECTURE}. In a similar way, my output files are named things like configure_${PROCESSOR_ARCHITECTURE}.out, make_${PROCESSOR_ARCHITECTURE}.out, etc. But, as you mention in your SO response, I'd never dream of sharing /usr/local this way. Oh, finally, I set the title of my mintty or xterm to contain ${PROCESSOR_ARCHITECTURE} as well, so I don't forget where I am. -- Chris J. Breisch -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple