📄 212.htm
字号:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>CTerm非常精华下载</title>
</head>
<body bgcolor="#FFFFFF">
<table border="0" width="100%" cellspacing="0" cellpadding="0" height="577">
<tr><td width="32%" rowspan="3" height="123"><img src="DDl_back.jpg" width="300" height="129" alt="DDl_back.jpg"></td><td width="30%" background="DDl_back2.jpg" height="35"><p align="center"><a href="http://202.112.58.200"><font face="黑体"><big><big>Tsinghua</big></big></font></a></td></tr>
<tr>
<td width="68%" background="DDl_back2.jpg" height="44"><big><big><font face="黑体"><p align="center"> 嵌入式系统 (BM: turbolinux jacobw) </font></big></big></td></tr>
<tr>
<td width="68%" height="44" bgcolor="#000000"><font face="黑体"><big><big><p align="center"></big></big><a href="http://cterm.163.net"><img src="banner.gif" width="400" height="60" alt="banner.gif"border="0"></a></font></td>
</tr>
<tr><td width="100%" colspan="2" height="100" align="center" valign="top"><br><p align="center">[<a href="嵌入式系统.htm">回到开始</a>][<a href="198.htm">上一层</a>][<a href="213.htm">下一篇</a>]
<hr><p align="left"><small>发信人: plato (纯真年代), 信区: Embedded <br>
标 题: linux for ppc 12 <br>
发信站: BBS 水木清华站 (Wed May 30 23:18:13 2001) <br>
<br>
Next Previous Contents <br>
---------------------------------------------------------------------------- <br>
---- <br>
12. Runtime Library <br>
12.1 glibc <br>
http://www.gnu.org/software/libc/ and http://sources.redhat.com/glibc/ <br>
Modern releases of glibc are very large for a traditional embedded system. I <br>
f your application requires only one or two user programs, you can staticall <br>
y link them to avoid requiring the entire dynamic library. Another option is <br>
to hand-strip the dynamic library to a bare minimum. <br>
The are some modifications required to official glibc-2.1.x releases to make <br>
them work in the embedded PowerPC environment, such as cache line size mods <br>
. See: http://lists.linuxppc.org/listarcs/linuxppc-embedded/199909/msg00000. <br>
html <br>
After applying these mods, glibc-2.1.x can be configured for cross-compiling <br>
with: <br>
#!/bin/sh <br>
export PATH=/path/to/local/i686-pc-linux-gnu/bin:$PATH <br>
export CFLAGS="-msoft-float -O2 -DNDEBUG=1" <br>
export CC=powerpc-linux-gcc <br>
export AR=powerpc-linux-ar <br>
export RANLIB=powerpc-linux-ranlib <br>
configure --host=powerpc-linux --prefix=/path/to/local/powerpc-linux \ <br>
--with-headers=/path/to/linux-2.2.13/include --enable-add-ons=linuxthrea <br>
ds \ <br>
--with-gnu-as --with-gnu-ld --disable-sanity-checks --without-fp <br>
There is a magic script named mklibs.sh which removes unused functions from <br>
the shared C library in the Debian Boot Floppies package, at: ftp://ftp.us.d <br>
ebian.org/debian/dists/potato/main/source/admin/boot-floppies_2.2.16.tar.gz <br>
12.2 sglibc <br>
http://sourceforge.net/projects/sglibc and http://external-lists.varesearch. <br>
com/lists/listinfo/sglibc <br>
This is an attempt to produce a small glibc-compatible C runtime library sub <br>
set suitable for embedded systems. <br>
To cut down some of the bloat in glibc, apply the patches at: http://externa <br>
l-lists.varesearch.com/archives/sglibc/1999-September/000007.html ftp://ftp. <br>
valinux.com/pub/support/hjl/glibc/glibc-old_version.tar.gz <br>
12.3 uClibc <br>
http://opensource.lineo.com/cgi-bin/cvsweb/uClibc/ <br>
uC-Libc is a C library for embedded systems developed originally for uClinux <br>
, and now being ported to other architectures including PowerPC. It has a di <br>
fferent set of design goals from GNU libc, but for many embedded systems it <br>
is a sensible choice. <br>
12.4 dietlibc <br>
http://www.fefe.de/dietlibc/ <br>
This project aims to make it easy to create small statically linked programs <br>
under Linux. <br>
12.5 newlib <br>
http://sources.redhat.com/newlib/ <br>
Newlib is a free C library intended for use on embedded systems, with less r <br>
estrictive licensing than the GPL. However, it currently lacks the libgloss <br>
layer necessary to use it as the C library under Linux. <br>
12.6 libc5 <br>
Older Linux libc's are often quite small, but generally not supported by any <br>
one now. <br>
---------------------------------------------------------------------------- <br>
---- <br>
Next Previous Contents <br>
<br>
-- <br>
<br>
※ 来源:·BBS 水木清华站 smth.org·[FROM: 166.111.161.8] <br>
</small><hr>
<p align="center">[<a href="嵌入式系统.htm">回到开始</a>][<a href="198.htm">上一层</a>][<a href="213.htm">下一篇</a>]
<p align="center"><a href="http://cterm.163.net">欢迎访问Cterm主页</a></p>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -