Binutils/zh CN
English · Français · Magyar · Русский · 中文(中国)
概述
大多数情况下,从一个平台交叉编译到另一个平台。您需要交叉编译的二进制实用程序(binutils),例如,汇编器,链接器等等。
构建你自己的二进制实用程序
如果在这里没有针对你的主机平台和目标平台的组合的二进制实用程序,你可以从它们的官网主页( http://www.gnu.org/software/binutils/ )的源文件中来编译它们。
这是针对二进制实用程序的一个非常典型的配置,特别适合与fpc一起使用:
./configure \
--target=arm-linux \
--prefix=/usr/local/lib/arm-linux \
--bindir=/usr/local/bin --mandir=/usr/local/share/man --infodir=/usr/local/share/info \
--program-prefix=arm-linux \
--disable-werror针对类Unix/Linux目标,目标选项和前缀选项非常简单。但是其它目标的目标选项和前缀选项并不是这样的。
选项列表:
| 平台 | 目标 | 前缀 |
|---|---|---|
| Windows (32 bit) | i386-mingw32 | i386-win32 |
| Win CE (Intel) | i386-wince | i386-wince |
| Win CE (arm) | arm-wince-pe | arm-wince |
| Win CE (i386) | i386-wince | i386-wince |
| Solaris | i386-solaris | i386-solaris |
| OS/2 | i386-os2-emx | i386-os2 |
| go32v2 | i386-go32 | i386-go32v2 |
| i386-netbsd | i386-netbsdelf-gnu | i386-netbsd |
| Symbian OS | i386-? | i386-? |
| Mac OS X (i386) | i386-darwin | i386-darwin |
| Mac OS X (PowerPC) | powerpc-darwin | powerpc-darwin |
| Mac OS X (x86-64) | x86_64-darwin | x86_64-darwin |
| iPhoneOS | arm-darwin? | arm-darwin? |
| Amiga (classic) | m68k-amiga | m68k-amiga |
| Amiga OS | powerpc-? | powerpc-? |
| AROS (i386) | i386-aros | i386-aros |
| MorphOS | ppc-morphos | powerpc-morphos |
| arm-gba | arm-thumb-elf | arm-gba |
| arm-nds | arm-thumb-elf | arm-nds |
| arm-embedded | arm-elf | arm-embedded |
| arm-symbian | ? | ? |
| arm-PalmOS | ? | ? |
| arm-linux | arm-linux | arm-linux |
| sparc-linux | sparc-linux | sparc-linux |
| sparc-solaris | sparc-solaris | sparc-solaris |
| m68k-linux | m68k-linux | m68k-linux |
| m68k-netbsd | m68k-netbsdelf | m68k-netbsd |
| m68k-embedded | m68k-elf | m68k-embedded |
| mipsel-linux | mipsel-linux | mipsel-linux |
| i8086-msdos | msdos-nasm and linker | 8086-msdos |
| x86_64-w64 | x86_64-w64-mingw32 | x86_64-w64 |
贡献者和更改
- 简体中文版本由 robsean 于 2021-07-14 创建。
From the Free Pascal wiki, page "Binutils/zh CN", as it stood on 2022-12-22 after a change by Robsean, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's Licensing page. If you have concerns about this material, message the admin.