UNIX编译器/链接器选项的任何当前优秀的跨平台参考?

时间:2023-01-03 12:26:42

I have used this summary reference for years but it is beginning to show its age. If you have any you might suggest as more current I would greatly appreciate it.

我已经使用了这个总结参考多年,但它开始显示它的年龄。如果你有任何你可能会建议更新,我会非常感激。

2 个解决方案

#1


Some resources that leap to mind:

一些跳跃于脑海的资源:

  • GCC manuals: Manuals for GCC at various versions.

    GCC手册:各种版本的GCC手册。

  • GNU binutils: Where the real documentation for ld lives.

    GNU binutils:ld的真实文档存在于何处。

  • Predef project: C/C++ predefined macros for many platforms, targets, and compilers.

    Predef项目:适用于许多平台,目标和编译器的C / C ++预定义宏。

  • GNU make: Sometimes you really do want to know what $< was intended to mean...

    GNU make:有时你真的想知道$ <意图是什么意思......< p>

In my experience, you won't find a lot of detail about the cross platform issues at any one of those places, though. I've soaked up a lot of it over the years, but haven't tried to codify that knowledge in any useful form.

根据我的经验,你不会在任何一个地方找到关于跨平台问题的大量细节。多年来我已经吸收了很多,但没有尝试以任何有用的形式编纂这些知识。

I would imagine that any of the cross-platform build tools have to include a fair amount of that kind of knowledge, even if it is tied up in their sources or in their developer/internals documentation. You could try delving into CMake, for instance, which tries to know how to create Makefiles for *nix platforms as well as Visual Studio projects at various rev levels for Windows platforms.

我认为任何跨平台构建工具都必须包含大量的这类知识,即使它们在源代码或开发人员/内部文档中都存在。例如,您可以尝试深入研究CMake,它试图了解如何为* nix平台创建Makefile,以及为Windows平台创建各种转速级别的Visual Studio项目。

#2


Why don't you create a community wiki entry on SO where you create the table of options.

为什么不在SO上创建社区wiki条目,您可以在其中创建选项表。

You could start by extracting the (still up to date) information from your link and then let the users of SO that know other compilers expand it to cover more and more.?

您可以首先从链接中提取(仍然是最新的)信息,然后让知道其他编译器的SO用户扩展它以涵盖越来越多的内容。

#1


Some resources that leap to mind:

一些跳跃于脑海的资源:

  • GCC manuals: Manuals for GCC at various versions.

    GCC手册:各种版本的GCC手册。

  • GNU binutils: Where the real documentation for ld lives.

    GNU binutils:ld的真实文档存在于何处。

  • Predef project: C/C++ predefined macros for many platforms, targets, and compilers.

    Predef项目:适用于许多平台,目标和编译器的C / C ++预定义宏。

  • GNU make: Sometimes you really do want to know what $< was intended to mean...

    GNU make:有时你真的想知道$ <意图是什么意思......< p>

In my experience, you won't find a lot of detail about the cross platform issues at any one of those places, though. I've soaked up a lot of it over the years, but haven't tried to codify that knowledge in any useful form.

根据我的经验,你不会在任何一个地方找到关于跨平台问题的大量细节。多年来我已经吸收了很多,但没有尝试以任何有用的形式编纂这些知识。

I would imagine that any of the cross-platform build tools have to include a fair amount of that kind of knowledge, even if it is tied up in their sources or in their developer/internals documentation. You could try delving into CMake, for instance, which tries to know how to create Makefiles for *nix platforms as well as Visual Studio projects at various rev levels for Windows platforms.

我认为任何跨平台构建工具都必须包含大量的这类知识,即使它们在源代码或开发人员/内部文档中都存在。例如,您可以尝试深入研究CMake,它试图了解如何为* nix平台创建Makefile,以及为Windows平台创建各种转速级别的Visual Studio项目。

#2


Why don't you create a community wiki entry on SO where you create the table of options.

为什么不在SO上创建社区wiki条目,您可以在其中创建选项表。

You could start by extracting the (still up to date) information from your link and then let the users of SO that know other compilers expand it to cover more and more.?

您可以首先从链接中提取(仍然是最新的)信息,然后让知道其他编译器的SO用户扩展它以涵盖越来越多的内容。