Windows 10 下 GCC / LLVM 的安装和使用

win10下gcc的安装和make
https://www.jianshu.com/p/46824c62dfed


方案1:直接官方下载安装minGw或Cygwin
install

download:

http://sourceforge.net/projects/mingw/files/latest/download?source=files\

or

http://mingw-w64.org/doku.php


click to install at C:\minGW\

添加路径到环境变量: 右键我的电脑→属性→高级系统设置→环境变量→系统变量
将C:\minGW\bin添加到path中

继续安装gcc-c++,gcc-make:打开C:\minGW\bin,双击.exe文件,在打开的图形界面中勾选需要安装的项

 

方案2:下载安装三方的集成库tdm-gcc
http://tdm-gcc.tdragon.net

推荐win下好用的C/C++ IDE集成环境CodeBlocks:
http://forums.codeblocks.org/index.php/board,20.0.html

 

方案3:下载安装三方的集成库llvm --- 还没用过,具体有待测试,不过基本的工具都有(lldb, clang, ar...)

http://releases.llvm.org/download.html

 

cmake download:

https://cmake.org/download/


 llvm

http://llvm.org/

简介:
The LLVM Project is a collection of modular and reusable compiler and toolchain technologies. Despite its name, LLVM has little to do with traditional virtual machines. The name "LLVM" itself is not an acronym; it is the full name of the project.

clang
http://clang.llvm.org/

简介:
Clang: a C language family frontend for LLVM
The Clang project provides a language front-end and tooling infrastructure for languages in the C language family (C, C++, Objective C/C++, OpenCL, CUDA, and RenderScript) for the LLVM project. Both a GCC-compatible compiler driver (clang) and an MSVC-compatible compiler driver (clang-cl.exe) are provided. You can get and build the source today.

LLDB
http://lldb.llvm.org/

简介:
LLDB is a next generation, high-performance debugger. It is built as a set of reusable components which highly leverage existing libraries in the larger LLVM Project, such as the Clang expression parser and LLVM disassembler.

LLDB is the default debugger in Xcode on macOS and supports debugging C, Objective-C and C++ on the desktop and iOS devices and simulator.

 

posted @ 2019-05-09 11:39  petercao  阅读(8479)  评论(2编辑  收藏  举报