问题描述
好吧,这就是所有。我找不到足够的信息来决定我应该使用哪个编译器来编译我的项目。在不同的计算机上有几个程序模拟一个过程。在Linux上我使用GCC。一切都很好。我可以优化代码,它编译快,使用不那么多的内存。我用MSVC和GCC编译器做我自己的基准。后来一个产生略快的二进制(对于每个子体系结构)。虽然编译时间远远超过MSVC。
所以我决定使用MinGW。但是在MinGW中找不到任何关于异常处理方法及其实现的解释。我可以为不同的操作系统和体系结构使用不同的发行版。
注意事项:
- 编译时间和记忆对我的使用不重要。只有重要的是运行时优化。我需要我的程序足够快。慢编译器是可以接受的。
- 操作系统:Microsoft Windows XP / 7/8 / Linux
- 架构:Intel Corei7 / Core2和运行XP的旧版i686: / li>
:
有关异常处理:
另请参阅:
Well, that's all. I can't find enough information to decide which compiler should I use to compile my project. There are several programs on different computers simulating a process. On Linux I'm using GCC. Everything is great. I can optimize code, it compiles fast and uses not-so-much memory.
I do my own benchmark with MSVC and GCC compilers. Later one produces slightly faster binaries (for each subarchitecture). Though compile time is much more than MSVC.
So I decided to use MinGW. But can't find any explanation about exception handling methods and their implementations in MinGW. I can use different distributions for different operating systems and architectures.
Considerations:
- Compile time and memory are not important for my usage. Only important thing is runtime optimization. I need my programs to be fast enough. Slow compiler is acceptable.
- OS: Microsoft Windows XP / 7 / 8 / Linux
- Architecture: Intel Corei7 / Core2 / and a very old i686 running XP :P
There's a short overview at MinGW-w64 Wiki:
GCC GNU about Exception Handling:
See also:
这篇关于sjlj vs dwarf vs seh有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!