使用代码源编译 GCC

发布于 2024-09-29 15:01:41 字数 255 浏览 1 评论 0原文

是否可以使用 Code Sourcery G++ 编译适用于 ARM 的本机 GCC(主机 == 目标 == ARM)? 如果不可能,我可以使用 crosstool-NG 构建交叉编译,然后使用它来编译本机 ARM GCC 吗?

谢谢,


编辑:至于原因:我正在为 beagleboard 创建自己的发行版...

Is it possible to compile native GCC for ARM (host == target == ARM) using Code Sourcery G++?
If it is not possible, could I use crosstool-NG to build the cross-compile and then using this one for compiling the native ARM GCC?

Thank you,


Edit: as to why: I'm creating my own distro for beagleboard...

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

横笛休吹塞上声 2024-10-06 15:01:41

CodeSourcery 仅提供适用于 Linux/x86 和 Windows 的预构建工具链(请参阅“主机系统要求”此处)。如果您想要一个本地 ARM 托管的工具链,您应该能够使用交叉编译器构建一个工具链。如果您想要预构建的版本,可以尝试一些现有的 ARM 发行版,例如 Debian-arm,或 Aboriginal Linux (它是为了在 QEMU 中运行而设计的,但你可以从中提取编译器并运行原生)。

CodeSourcery provides prebuilt toolchains only for Linux/x86 and Windows (see "Host System Requirements" here). If you want a native ARM-hosted toolchain, you should be able to build one using a cross-compiler. If you want a prebuilt one, you can try some of the existing ARM distros such as Debian-arm, or Aboriginal Linux (it's made to be run in QEMU but you can probably extract the compiler from it and run natively).

离去的眼神 2024-10-06 15:01:41

Tiny C 编译器在 kindle 3 上原生运行得很好。
在专为本机使用而编译的 mobileread 论坛上可以找到它。

代码源工具链可通过“arm-none-linux-gnueabi-gcc foo.c”IIRC 轻松进行简单编译。创造本土武器。 Crosstools-ng 也是如此,但不是原生 AIUI。

我查看了http://buildroot.uclibc.org/downloads/manual/manual。 html#_about_buildroot
以获得更全面的解决方案。

其中有一些选项可以满足您使用 x-compile 来生成编译器所需的 IIRC,但 Crosstools 是更强大的链,我在使用 codesourcery 进行真正的静态构建时遇到了麻烦。华泰

Tiny C Compiler runs decently natively on the kindle 3.
Find it on the mobileread forums compiled for native use.

Code sourcery toolchain works for simple comilation via "arm-none-linux-gnueabi-gcc foo.c" IIRC with no effort. creating native arms. Crosstools-ng as well but neither natively AIUI.

I looked into http://buildroot.uclibc.org/downloads/manual/manual.html#_about_buildroot
for a more comprehensive solution.

There are some options in there for what you require IIRC using x-compile to make the compiler but Crosstools is the more robust chain I had trouble with codesourcery doing true static build. HTH

但可醉心 2024-10-06 15:01:41

最好使用 openembedded

better off to use openembedded

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文