rainit2006 / C-Program

C# Program knowledge
0 stars 0 forks source link

编译器(VS) #21

Open rainit2006 opened 7 years ago

rainit2006 commented 7 years ago

支持Windows的版本: 调查表明,VS2013/2015/2017均支持Windows XP及以上,针对Windows XP会有专门的编译选项。 参考链接: VS2013: https://www.visualstudio.com/en-us/productinfo/vs2013-compatibility-vs#visual-studio-2013-support-for-windows-desktop-development VS2015: https://www.visualstudio.com/en-us/productinfo/vs2015-compatibility-vs#visual-studio-2015-support-for-windows-desktop-development VS2017: https://www.visualstudio.com/en-us/productinfo/vs2017-compatibility-vs#a-iddevelopwindows-avisual-studio-2017-support-for-windows-development

Microsoft支持的期限: VS产品遵循 Microsoft 10 年支持生命周期策略,即 5 年主流支持(Mainstream Support)和 5 年扩展支持(Extended Support),起始日期为主要产品版本向全球(RTW)发布的日期。

Products Released Lifecycle Start Date Mainstream Support End Date Extended Support End Date Notes Visual Studio 2013 Update 5 7/20/2015 4/9/2019 4/9/2024 Support ends 12 months after the next service pack releases or at the end of the product's support lifecycle, whichever comes first. For more information, please see the Developer lifecycle FAQ at https://support.microsoft.com/help/17959

Visual Studio 2015 Update 3 6/27/2016 10/13/2020 10/14/2025 Support ends 12 months after the next service pack releases or at the end of the product's support lifecycle, whichever comes first. For more information, please see the servicing website for Visual Studio and Team Foundation Server at https://www.visualstudio.com/en-us/productinfo/vs-servicing-vs.

Visual Studio 2017 3/7/2017 4/12/2022 4/13/2027

参考链接: https://www.visualstudio.com/en-us/productinfo/vs-servicing-vs https://support.microsoft.com/en-us/lifecycle/search?alpha=Visual%20Studio%202013%20Update%205 https://support.microsoft.com/en-us/lifecycle/search?alpha=Visual%20Studio%202015%20Update%203 https://support.microsoft.com/en-us/lifecycle/search?alpha=Visual%20Studio%202017

rainit2006 commented 5 years ago

Windows环境下的C/C++编译器 https://my.oschina.net/wqli/blog/544340

在Windows下的开发实际上是VS(Visual Studio)一家独大,而在Linux上则是GCC占据主导地位,这两种编译器是和其对应的操作系统紧密联系在一起的。伴随着计算机技术的发展,GCC也有了对应的Windows版本,而Windows也终于想开了,推出了Visual Studio Code以支持跨平台的.NET技术。

目前Windows系统下的编译器大概有以下几种:

  1. Visual Studio, 微软自家开发,最新版VS2017已经出来了。一般商业公司会采用这种集成化的开发环境(IDE),配合丰富的插件扩展(如Visual Assist,超级好用但收费),开发调试起来非常方便,个人开发者可免费使用其社区版,也不失为一个不错的选择。
  2. GCC,来自Linux的 GNU C/C++ Compiler,功能强大而开源,推荐个人使用,我正是用它来从事个人的开发,本文也会对其进行详细介绍。
  3. 其他编译器。在对运行性能有很高要求的领域,可能上述编译器并不合适,因此还有Intel的编译器,PGI编译器等,功能强大但支持平台有限。另外还有一些小众的编译器,当然其中不乏著名的Borland公司的Turbo C,Turbo C++等没落的王者。。。

一般我们不会只使用gcc一个工具,而是希望使用和它相关的一套工具,例如g++, gdb等,称为工具链(toolchain)。在Windows下包含GCC移植版本的主要有 MinGW 和 Cygwin 两个流派。