Why isn't the gcc 4.x.x series compilers installed by MinGW by default?

时光毁灭记忆、已成空白 提交于 2020-01-02 08:03:22

问题


Currently, MinGW's only installs the 3.x.x series of the gcc compiler by default. However, it looks like the 4.x.x series of compilers have been out for some time, and as others have mentioned, it seems to work just fine. Is there any reason why it hasn't moved to the 4.x.x versions yet, and any reason why I shouldn't use the newer versions of gcc?


回答1:


GCC4's C++ ABI has changed from GCC3, and it includes a lot of new features (like its tree vectorization) that a lot of people still consider "experimental." There are still a few Linux distributions still using GCC3 for that reason.




回答2:


The TDM GCC/MinGW32 builds installer includes gcc 4.4.x and all the core binary packages required for basic Windows development, including gdb. It's widely used without any unusual problems.




回答3:


The issue appears to be that they've changed the exception handling mechanism in a way that breaks the ABI. That means you can't (for example) drop in the new compiler and continue to use old object files and/or libraries. You have to re-compile everything from source code to get working results at all.



来源:https://stackoverflow.com/questions/1568949/why-isnt-the-gcc-4-x-x-series-compilers-installed-by-mingw-by-default

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!