Bonj wrote:
Hi
What is a good C/C++ compiler for a 64-bit linux system?
I'm thinking of building a new PC and want to put an AMD64 in it. Since
I've already got one windows PC, windows isn't free, and isn't even past
beta in 64-bit, I thought I'd go for a fedora linux box.
But I've no idea what compiler to use - presumably it'd be gcc, but which?
Do I need cygwin or anything if I'm on linux, or does gcc "just work" on
linux because it's its native environment?
Is it possible to compile a GUI app on 64-bit linux that will be (*fairly*
easily) portable to windows? (using C - not java)
I am using debian 64 bits with gcc installed.
There are no problems at all with gcc, it works, and generates
64 bit code of course, in a 64 bit system.
Notice the sizeof(long) == 8, and sizeof(int) == 4. This is
not portable to windows 64 bits where sizeof(long) == 4 and
sizeof(int) == 4
I am porting lcc-win32 to linux, and I would love to tell you that
lcc64 is a better system but I will need some years of work
before it runs smoothly...
You do not of course need cygwin, since cygwin is a unix
emulator for windows. If you run unix natively, the simulator
just doesn't make any sense. Of course you could run an
Unix simulator using the windows emulation available under
unix, specially if you find that your new machine is just
too fast for your taste and you need to slow it down. :-)
Software ports easily in C, but you should beware of the
change in the long data type.
jacob
--
lcc-win32:
http://www.cs.virginia.edu/~lcc-win32