From: patrick f. <pa...@we...> - 2009-04-24 21:48:48
|
Thanx Tor - did as you instructed. The hello.exe compiled with x86_64-pc-mingw32-gcc is about 10X the size of the one compiled with simply gcc which would seem to indicate that the former is a 64 bit image and the latter 32. But how does one check an image to directly to see if it's compiled 32 or 64 bits? (I've googled this some already but haven't yet found a good answer). Tried objdump -i on both images. And they both reported exactly the same results. With briefly, lots of references to i386 and no references to, say, i686. But objdump is probably not the tool I want. It's been many years since I more than dabbled in UNIX land. thanx - pat Tor Lillqvist wrote: >> What would be the barebones gcc command, using mingw64, to build a >> sample hello.c? >> > > On a 64-bit Windows system, presumably: > > gcc -o hello.exe hello.c. > > Using a cross-compiler: > > x86_64-pc-mingw32-gcc -o hello.exe hello.c > > --tml > > > |