?? 00000012.htm
字號:
<?xml version="1.0" encoding="gb2312"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312"/><title>linux for ppc 12 jacobw </title></head><body><center><h1>BBS 水木清華站∶精華區(qū)</h1></center><a name="top"></a>發(fā)信人: plato (純真年代), 信區(qū): Embedded <br />標 題: linux for ppc 12 <br />發(fā)信站: BBS 水木清華站 (Wed May 30 23:18:13 2001) <br /> <br />Next Previous Contents <br />---------------------------------------------------------------------------- <br />---- <br />12. Runtime Library <br />12.1 glibc <br /><a href="http://www.gnu.org/software/libc/">http://www.gnu.org/software/libc/</a> and <a href="http://sources.redhat.com/glibc/">http://sources.redhat.com/glibc/</a> <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: <a href="http://lists.linuxppc.org/listarcs/linuxppc-embedded/199909/msg00000.">http://lists.linuxppc.org/listarcs/linuxppc-embedded/199909/msg00000.</a> <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: <a href="ftp://ftp.us.d">ftp://ftp.us.d</a> <br />ebian.org/debian/dists/potato/main/source/admin/boot-floppies_2.2.16.tar.gz <br />12.2 sglibc <br /><a href="http://sourceforge.net/projects/sglibc">http://sourceforge.net/projects/sglibc</a> and <a href="http://external-lists.varesearch.">http://external-lists.varesearch.</a> <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: <a href="http://externa">http://externa</a> <br />l-lists.varesearch.com/archives/sglibc/1999-September/000007.html <a href="ftp://ftp.">ftp://ftp.</a> <br />valinux.com/pub/support/hjl/glibc/glibc-old_version.tar.gz <br />12.3 uClibc <br /><a href="http://opensource.lineo.com/cgi-bin/cvsweb/uClibc/">http://opensource.lineo.com/cgi-bin/cvsweb/uClibc/</a> <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 /><a href="http://www.fefe.de/dietlibc/">http://www.fefe.de/dietlibc/</a> <br />This project aims to make it easy to create small statically linked programs <br /> under Linux. <br />12.5 newlib <br /><a href="http://sources.redhat.com/newlib/">http://sources.redhat.com/newlib/</a> <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 /><a href="00000011.htm">上一篇</a><a href="javascript:history.go(-1)">返回上一頁</a><a href="index.htm">回到目錄</a><a href="#top">回到頁首</a><a href="00000013.htm">下一篇</a></h1></center><center><h1>BBS 水木清華站∶精華區(qū)</h1></center></body></html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -