source: rtems/testsuites/ada/sptests/sp19/README @ 6899a8d

5
Last change on this file since 6899a8d was ee537ea, checked in by Sebastian Huber <sebastian.huber@…>, on 10/12/17 at 08:00:10

ada-tests: Move to testsuites/ada

This solves a build dependency issue, e.g. building tests before
librtemsbsp.a exists.

Close #3079.

  • Property mode set to 100644
File size: 845 bytes
Line 
1This is a "problem" test in Ada versus the C equivalent.  In C,
2we used macros to :
3
4  + declare a LOT of local integer and floating point variables
5  + load them with values
6  + check them at certain times
7  + to avoid floating point operations on CPUs w/o hardware support
8
9The macros are not equivalent to subprograms doing the same thing.
10We are trying to insure that the register set is fully utilized and
11checking that it survives context switches.  If the routines are
12subprograms, then calling conventions and scoping rules apply.  Thus
13the variables do not exist throughout the entire life of the task
14as in the C test.
15
16It seems to point out that although the conditional compilation
17and macro capabilities of C are often abused, they do provide
18capabilities which are difficult if not impossible to mimic entirely
19with subprograms. 
Note: See TracBrowser for help on using the repository browser.