c++ - 最小 GCC C++ 编译器

标签 c++ c gcc compilation

我正在努力减少使用 GCC 编译和运行 C++ 代码所需的资源。我下载了 DevC++ 的便携版本,但我更关注我需要哪些文件才能通过命令提示符运行 gcc 并针对所有标准库进行编译。我对 Windows 应用程序不感兴趣,只对命令提示符感兴趣。

是否有已经剥离的 GCC 版本?如果没有,谁能帮我一把

*我已经知道 CygWin 和 MinGW,我正在寻找将 cpp 编译器用于 GCC 的最低要求。就像 Tiny C 一样,整个功能编译器和库不到 200 KB,我希望使用 cpp 编译器模拟该工作流。

最佳答案

MinGW

MinGW, a contraction of "Minimalist GNU for Windows", is a minimalist development environment for native Microsoft Windows applications.

Primarily intended for use by developers working on the native MS-Windows platform, [...] MinGW includes:

  • A port of the GNU Compiler Collection (GCC), including C, C++, ADA and Fortran compilers;
  • GNU Binutils for Windows (assembler, linker, archive manager)
  • A graphical and a command-line installer for MinGW and MSYS deployment on MS-Windows

关于c++ - 最小 GCC C++ 编译器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8219254/

相关文章:

c++ - 为什么 "-flto"静默 GCC 的警告 "stringop-truncation"

C 编程 - 理解 bind()

c++ - 使用 `extern template` 防止模板类的隐式实例化

c++ - 如何在 Yocto 构建的 CMAKE projet 中添加预处理器定义

c++ - 在 c++ 模式下更改 emacs 上 'case' 关键字中的选项卡计数

c - 在这种情况下如何正确释放双指针的内存?

c - 如何从外部 c 文件的函数返回 *uint8_t(数组)到 main.c

c++ - Clang vs GCC vs MSVC - 使用大括号括起来的初始化列表来创建用户定义的类型?

android - arm-linux-androideabi编译器使用方法

c++ - 如何让 2 个 C++ 类了解彼此的数据成员?