Sign in Join
Wiki copytemporary

Binutils/zh CN: what changed

Revision 0 to 1. Removed lines have a minus sign; added lines have a plus sign.

Title: Binutils/zh CN

OldNewLine
1+## 概述
2+
3+大多数情况下,从一个平台交叉编译到另一个平台。您需要交叉编译的二进制实用程序(binutils),例如,汇编器,链接器等等。
4+
5+## 构建你自己的二进制实用程序
6+
7+如果在这里没有针对你的主机平台和目标平台的组合的二进制实用程序,你可以从它们的官网主页( <http://www.gnu.org/software/binutils/> )的源文件中来编译它们。
8+
9+这是针对二进制实用程序的一个非常典型的配置,特别适合与fpc一起使用:
10+
11+``` bash
12+./configure \
13+--target=arm-linux \
14+--prefix=/usr/local/lib/arm-linux \
15+--bindir=/usr/local/bin --mandir=/usr/local/share/man --infodir=/usr/local/share/info \
16+--program-prefix=arm-linux \
17+--disable-werror
18+```
19+
20+针对类Unix/Linux目标,目标选项和前缀选项非常简单。但是其它目标的目标选项和前缀选项并不是这样的。
21+
22+选项列表:
23+
24+| 平台 | 目标 | 前缀 |
25+|--------------------|-----------------------|-----------------|
26+| Windows (32 bit) | i386-mingw32 | i386-win32 |
27+| Win CE (Intel) | i386-wince | i386-wince |
28+| Win CE (arm) | arm-wince-pe | arm-wince |
29+| Win CE (i386) | i386-wince | i386-wince |
30+| Solaris | i386-solaris | i386-solaris |
31+| OS/2 | i386-os2-emx | i386-os2 |
32+| go32v2 | i386-go32 | i386-go32v2 |
33+| i386-netbsd | i386-netbsdelf-gnu | i386-netbsd |
34+| Symbian OS | i386-? | i386-? |
35+| Mac OS X (i386) | i386-darwin | i386-darwin |
36+| Mac OS X (PowerPC) | powerpc-darwin | powerpc-darwin |
37+| Mac OS X (x86-64) | x86_64-darwin | x86_64-darwin |
38+| iPhoneOS | arm-darwin? | arm-darwin? |
39+| Amiga (classic) | m68k-amiga | m68k-amiga |
40+| Amiga OS | powerpc-? | powerpc-? |
41+| AROS (i386) | i386-aros | i386-aros |
42+| MorphOS | ppc-morphos | powerpc-morphos |
43+| arm-gba | arm-thumb-elf | arm-gba |
44+| arm-nds | arm-thumb-elf | arm-nds |
45+| arm-embedded | arm-elf | arm-embedded |
46+| arm-symbian | ? | ? |
47+| arm-PalmOS | ? | ? |
48+| arm-linux | arm-linux | arm-linux |
49+| sparc-linux | sparc-linux | sparc-linux |
50+| sparc-solaris | sparc-solaris | sparc-solaris |
51+| m68k-linux | m68k-linux | m68k-linux |
52+| m68k-netbsd | m68k-netbsdelf | m68k-netbsd |
53+| m68k-embedded | m68k-elf | m68k-embedded |
54+| mipsel-linux | mipsel-linux | mipsel-linux |
55+| i8086-msdos | msdos-nasm and linker | 8086-msdos |
56+| x86_64-w64 | x86_64-w64-mingw32 | x86_64-w64 |
57+| | | |
58+
59+# 贡献者和更改
60+
61+- 简体中文版本由 robsean 于 2021-07-14 创建。
62+
63+---
64+*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](/wiki-contact).*

Back to history