I understand that I can provoke a holivar. But nevertheless, I propose to discuss the advantages and disadvantages of various C, C ++ compilers. Platforms - Linux (+ * nix in general), Windows.

Closed due to the fact that it is necessary to reformulate the question so that it was possible to give an objectively correct answer by the participants ߊߚߤߘ , aleksandr barakin , Kromster , Sasha Omelchenko , Vanya Avchyan 29 May '17 at 17:04 .

The question gives rise to endless debates and discussions based not on knowledge, but on opinions. To get an answer, rephrase your question so that it can be given an unambiguously correct answer, or delete the question altogether. If the question can be reformulated according to the rules set out in the certificate , edit it .

    2 answers 2

    Intel C ++ is really very good for carrying out complex, large calculations, very well implemented OpenMP. I regularly use it myself where I need great performance. But when compiling simple applications, where it is difficult to parallelize something, I didn’t notice a big advantage over gcc.

    • I understand you. But when compiling capacious applications, the speed gain is obvious? Should I use gcc instead of the usual one (I use mainly CE for calculations)? There are data benchmarks? - Alexey Kotov
    • one
      Very obvious. But not just capacious, but those where the algorithm is located for parallelization. He experimented and compared himself. Especially help the various optimization parameters for specific processors. However, you should not expect much advantage on AMD processors, since they use different gadgets of Intel processors (I did not try it myself, I am based on other people's information). - skegg
    • About AMD and understandable. Optimization clearly for their processors. But my tasks are clearly not for mass use, so using a computer with Intel is not a problem. I will try. What difficulties should be expected when porting code with gcc? - Alexey Kotov
    • Compatibility is not bad, although not 100%. He did not experience any difficulties. If you do not need some very "clever" compilation parameters, etc., then problems should not arise. But they can't compile the kernel. - skegg

    GCC has no flaws :-D

    • =) we all (especially Linuxoids) know and respect GCC. I am writing now exclusively for GCC (including architectures other than Pc). But. I have been praised by the Intel optimizing family of compilers. Is there any information (practical) on this topic? What other options? - Alexey Kotov
    • Are you sure ? Play around with comparing more or less than two ntohl () without explicitly converting to unsigned (and in .h it is unsigned) with the x86 optimization flag. - avp
    • one
      nobody's perfect :) - skegg