Limitations

Peal does not provide support for arbitrary ARM-ELF code. Only
code built with Peal's postlinker can be loaded by Peal.

Peal does not provide support for ELF shared libraries.

Peal uses the stack space provided by PceNativeCall(), which is
only 4 KB by default. There are ways to increase the ARM stack size,
but Peal does not use any of them.

Usage

See the README for more details. The
download package includes a complete example program.

Build the peal-postlink program in the postlink/ directory:
cd postlink; make

Write ARM code that uses global data or function pointers. ARM
functions intended to be called by m68k code may take a single
parameter. ARM functions that need to call back into m68k code should
use the variables gEmulStateP and gCall68KFuncP from arm/pealstub.h.
unsigned long MyArmFunction(void *arg) { ... }