Thread: 64bit humawahjusit?

  1. #1
    Registered User
    Join Date
    Oct 2003
    Posts
    8

    Cool 64bit humawahjusit?

    Hey guys, I've been doing some searching on the interenet and can't seem to find a nice free 64bit compiler for C/C++. Does anyone here know where I can find one?

    Million thanks..

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    Do you have a 64bit processor and a 64bit OS?
    Not much point in having a compiler unless you also have those.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Me -=SoKrA=-'s Avatar
    Join Date
    Oct 2002
    Location
    Europe
    Posts
    448
    How about cross-compiling?
    gcc and g++ have 64bit support with the -m64 flag, I think. Read the man pages. I can't remember if there's a gcc for Windows but if there is, it'll work as well.
    SoKrA-BTS "Judge not the program I made, but the one I've yet to code"
    I say what I say, I mean what I mean.
    IDE: emacs + make + gcc and proud of it.

  4. #4
    Registered User
    Join Date
    Oct 2003
    Posts
    8
    Thanks for the replies.

    I have an AMD64 and as for the 64bit Operating system, i'm in the process of making one.

    Gcc is possible to run on win32 via cygwin or mingw. However I wasn't aware of the -m64 flag. I shall try this.

    Thank you once again.

  5. #5
    Me -=SoKrA=-'s Avatar
    Join Date
    Oct 2002
    Location
    Europe
    Posts
    448
    From the gcc info page:
    Code:
    `-m32'
    `-m64'
         Generate code for a 32-bit or 64-bit environment.  The 32-bit
         environment sets int, long and pointer to 32 bits and generates
         code that runs on any i386 system.  The 64-bit environment sets
         int to 32 bits and long and pointer to 64 bits and generates code
         for AMD's x86-64 architecture.
    This also works for the soon-to-be-released Intel 64bit (not the Itanium, the new one) architecture as they use the same instruction set although they don't say that anywhere, and had to be guesses from the dcumentation.
    SoKrA-BTS "Judge not the program I made, but the one I've yet to code"
    I say what I say, I mean what I mean.
    IDE: emacs + make + gcc and proud of it.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. 64bit number to 16bit number
    By DavidDobson in forum C Programming
    Replies: 2
    Last Post: 10-23-2008, 02:58 AM
  2. i need a non .net 64bit windows compiler
    By learning in forum C++ Programming
    Replies: 30
    Last Post: 05-18-2007, 06:47 PM
  3. 32bit - 64bit portability
    By l2u in forum C++ Programming
    Replies: 2
    Last Post: 05-10-2007, 05:13 PM
  4. Dev C++ 64bit support
    By code2d in forum Tech Board
    Replies: 6
    Last Post: 01-03-2007, 05:23 AM
  5. Cross Platform Compatible 64Bit And 8Bit Integer
    By Geolingo in forum C++ Programming
    Replies: 5
    Last Post: 01-14-2005, 04:35 AM