Difference between Windows and Linux GCC compiler
Hi all, I'm interested to know what is the difference in programming using MS Visual C++ on Windows and using the GCC compiler on Linux, i.e. what are some of the things I can do on Visual C++ that won't compile/run on Linux, and vice versa. For example, I know that Windows uses the LLP64 model, while Linux uses the LP64 model, so the long data type is only 32-bit on Windows but 64-bit on Linux. Also, the windows.h file is only available in Windows, and can't be used on Linux. I've also read that there is also some differences in network programming, since winsock, and especially the underlying ip headers are much different in Windows than Unix/Linux gcc. Is this true? Thank you.
GCC vs ICC
Hi all, I'm interested in knowing how GCC differs from Intel's ICC in terms of the optimization levels and catering to specific processor architecture. I'm using GCC 4.1.2 20070626 and ICC v11.1 for Linux. How does ICC's optimization levels (O1 to O3) differ from GCC, if they differ at all? The ICC is able to cater specifically to different architectures (IA-32, intel64 and IA-64). I've read that GCC has the -march compiler option which I think is similar, but I can't find a list of the options to use. I'm using Intel Xeon X5570, which is 64-bit. Are there any other GCC compiler options I could use that would cater my applications for 64-bit Intel CPUs? Thank you. Regards, Rayne
Compiler option for SSE4
Hi all, I'm using GCC 4.1.2 20070626 on a server with Intel Xeon X5570. How do I turn on the compiler option for SSE4? I've tried -msse4, -msse4.1 and -msse4.2, but they all returned the error message cc1: error: unrecognized command line option "-msse4.1" (for whichever option I tried). Thank you. Regards, Weidong