我正在努力减少使用 GCC 编译和运行 C++ 代码所需的资源。我下载了 DevC++ 的便携版本,但我更关注我需要哪些文件才能通过命令提示符运行 gcc 并针对所有标准库进行编译。我对 Windows 应用程序不感兴趣,只对命令提示符感兴趣。
是否有已经剥离的 GCC 版本?如果没有,谁能帮我一把
*我已经知道 CygWin 和 MinGW,我正在寻找将 cpp 编译器用于 GCC 的最低要求。就像 Tiny C 一样,整个功能编译器和库不到 200 KB,我希望使用 cpp 编译器模拟该工作流。
最佳答案
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/