[prev in list] [next in list] [prev in thread] [next in thread]
List: mingw-users
Subject: Re: [Mingw-users] compiling 64-bit programs
From: "K. Frank" <kfrank29.c () gmail ! com>
Date: 2010-05-31 22:56:32
Message-ID: AANLkTils50kZDvvK8gawUzBOJMYbI4EzCUcTayLTD0RV () mail ! gmail ! com
[Download RAW message or body]
Hi Nate -
On Mon, May 31, 2010 at 4:26 PM, Botond Ballo <zeratul976@hotmail.com> wrote:
> Hello,
>
> I just tested MinGW 4.5 on a computer running 64-bit Windows, and found that
> sizeof(void*) is still 4, instead of 8 which is what I would expect.
I believe that you are seeing MinGW produce a 32-bit windows executable,
and that this is expected.
I am running 32-bit MinGW on 64-bit windows 7. When I run the various
MinGW tools they show up as 32-bit processes in Task Manager (i.e.,
"xyz.exe *32"). When I run a program that I built with MinGW, it also
shows up as a 32-bit process in Task Manager.
> Am I missing some option to compile the program as a 64-bit program?
I do not believe that the MinGW project supports 64 bits (yet). So, no,
you can't feed some flag to 32-bit MinGW's gcc to tell it to produce 64-bit
code. There is another project (unaffiliated, I believe) that has ported 64-bit
gcc and friends to windows, see:
sourceforge.net/projects/mingw-w64/
(I think that there is also a separate mailing list for mingw-64.)
> On my 64-bit Linux machine, sizeof(void*) is 8 without adding any flags.
I'm not running linux, but I would guess that the gcc that comes with a
64-bit linux distribution runs both as a 64-bit process, and, by default,
produces 64-bit code.
> Thanks,
> Nate.
Good luck.
K. Frank
------------------------------------------------------------------------------
_______________________________________________
MinGW-users mailing list
MinGW-users@lists.sourceforge.net
This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same. Disregard for the list etiquette may \
cause your account to be moderated.
_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic