Embedded 版 (精华区)

发信人: he (无情的雨), 信区: Embedded_system
标  题: linux for ppc chapter 4 
发信站: 哈工大紫丁香 (2001年06月04日11:00:59 星期一), 站内信件

----------------------------------------------------------------------------
----
4. Host Development Platform
Embedded Linux's compelling advantage over other Embedded OS's is that your
development host and target are the same. While you could theoretically deve
lop your embedded Linux target system software on any host OS, Linux is the
only sensible choice. Even Cygwin/UWIN is likely to waste more of your time.

4.1 PowerPC
Using a PowerPC based development development host platform makes life easie
r, since the same binaries will run on your host and target. However, if you
r choice of host platform is restricted to non-PowerPC, cross compiling adds
 some minor inconvenience, primarily in finding or building your own toolset
.
You can take binaries from a standard PowerPC-based G4 Macintosh Linux distr
ibution and run them unmodified on a PowerPC embedded system provided:
The binaries are dynamically linked.
You use the modified dynamic runtime glibc C library, but compiled with -mha
rd-float.
You include the floating point math emulator in the kernel for processors su
ch as the 8xx series that lack a real floating point unit.
Note that for floating-point intensive applications this will invoke a perfo
rmance penalty over re-compiling all the binaries and libraries; but recompi
ling is what you're trying to avoid, right?
Also note that standard Macintosh binaries won't work with the runtime libra
ry in the Hard Hat distribution on 8xx processors, because they've been comp
iled with -msoft-float to give optimum performance. In this case just use th
e equivalent Hard Hat binaries instead.
4.2 x86
Doing it this way is slightly more painful, but it's what most people use.
----------------------------------------------------------------------------
---- 

--

※ 来源:·哈工大紫丁香 bbs.hit.edu.cn·[FROM: 202.118.235.250]
[百宝箱] [返回首页] [上级目录] [根目录] [返回顶部] [刷新] [返回]
Powered by KBS BBS 2.0 (http://dev.kcn.cn)
页面执行时间:1.971毫秒