2 ms·
Apart from compiler redundancy, it eliminates the usage of vendor (GCC or Clang) extensions and UB that the two compilers don't agree on. Edit: last I checked
by zamalek 7y ago
Apart from compiler redundancy, it eliminates the usage of vendor (GCC or Clang) extensions and UB that the two compilers don't agree on.
Edit: last I checked (more than two years ago), GCC was faster on more micro-benchmarks.
- jjuhl 7y agoHow does choosing one compiler over another "eliminate use of vendor extensions and UB"? Whatever compiler is chosen you'll have as much UB and as many extensions to deal with, as if the other one had been chosen.
- zamalek 7y agoProvided you have good code coverage, you'll pick up any UB that falls outside the intersection by running tests on both compilers.