The PowerPC 55xx and e500v2 ELF Bareboard Example

This tutorial shows how to build an example and run it with GNATemulator.

Compiling the example

The example comprises 2 files:

  • hello.adb, the main subprogram.
  • hello.gpr, the project to build the program

To build, simply invoke gprbuild:

gprbuild --target=powerpc-eabispe -P hello.gpr --RTS=xravenscar-full-p2020

Running the example

To launch the example just run:

powerpc-eabispe-gnatemu hello

GNATemulator will automatically load the ELF file (hello) and start execution at the entry point.