PowerPC Performance Libraries 1.1
This project provides performance optimized library functions for IBM PowerPC
4xx embedded processors.
The libraries cover floating-point emulation and common C library string and
memory functions.
More information may be found in the Source/doc/ directory.
Copyright (C) 2003 IBM Corporation
All rights reserved.
see Source/COPYING.LIB for Redistribution and use
----------
2009, November 04 - Recompiled for AmigaOS 4.1 by Max "m3x" Tretene
To install, copy the SDK directory over SDK:
To rebuild the OS4.x version:
cd Source
sh
make -f makefile.os4
The script will build only the string and memory library for the
440 cpu, since the cpu model used on Sam440ep has a hardware FPU unit.
The link and shared libraries will be placed in SDK:Local/newlib/lib
To rebuild the test executables, enter the Source/stropt/test directory and
type "make".
Run the executables linked with ppcstr440 library "t_xxx_new" and compare the
time needed to complete against the executables linked with the standard SDK
libraries "t_xxx_old"
7.RAM Disk:test> t_memchr_new
7.RAM Disk:test> echo $_RunTime
5.661525
7.RAM Disk:test> t_memchr_old
7.RAM Disk:test> echo $_RunTime
17.627331
(the provided run.sh script doesn't seem work on AOS4)
To link your project with the new library, add -lppcstr440 to LDFLAGS.
ATTENTION: the executables linked with this library will work ONLY on a 440 cpu,
and will crash if run on other cpus (ie G3 / G4)
Add a check in you programm to verify the code is running on a Sam440ep, with
ie:
GetMachineInfo() or GetCPUInfo()
| |