genode/repos/libports/src/test/spark
Norman Feske 6d11591d83 test-spark: rename number_of_bits -> object_size
In the original version, I used 'number_of_bits' because Ada's 'Size
returns the size in bits, not bytes. But the values (for objects) are
always a multiple of 8. On the C++ side, performing size checks at the
granularity of bits is just awkward. The term 'object size' is more
natural.
2019-04-09 12:30:35 +02:00
..
lib Rename Ada runtime to SPARK runtime 2019-02-19 11:08:17 +01:00
machinery.adb test-spark: rename number_of_bits -> object_size 2019-04-09 12:30:35 +02:00
machinery.ads test-spark: rename number_of_bits -> object_size 2019-04-09 12:30:35 +02:00
machinery.h test-spark: rename number_of_bits -> object_size 2019-04-09 12:30:35 +02:00
main.adb Rename Ada runtime to SPARK runtime 2019-02-19 11:08:17 +01:00
print.cc Rename Ada runtime to SPARK runtime 2019-02-19 11:08:17 +01:00
README Rename Ada runtime to SPARK runtime 2019-02-19 11:08:17 +01:00
spark.adc Rename Ada runtime to SPARK runtime 2019-02-19 11:08:17 +01:00
startup.cc ada: provide runtime symbols for elaboration code 2019-02-28 11:32:53 +01:00
target.mk Rename Ada runtime to SPARK runtime 2019-02-19 11:08:17 +01:00

This directory contains an example Ada program on Genode.

An Ada program relies on the normal startup procedure of Genode
components, which calls 'Component::construct()' in _startup.cc_. It
enters the Ada code by calling the Ada main procedure '_ada_main()'
from 'Component::construct()'. Additionally, the test exercises calls
of C functions from Ada code to demonstrate the almost seamless
integration of Ada and C code and illustrates the implementation of
Ada libraries in Genode. Ada programs require the _ada_ library as it
provides the needed runtime.

Please note that the current version of this program does not use
'gnatbind'. Therefore, package elaboration is not executed.