Back to home page

LXR

 
 

    


Warning, /testsuites/ada/sptests/sp19/README.md is written in an unsupported language. File is not indexed.

0001 sp19
0002 ====
0003 This is a "problem" test in Ada versus the C equivalent.  In C,
0004 we used macros to :
0005 
0006   + declare a LOT of local integer and floating point variables
0007   + load them with values
0008   + check them at certain times
0009   + to avoid floating point operations on CPUs w/o hardware support
0010 
0011 The macros are not equivalent to subprograms doing the same thing.
0012 We are trying to insure that the register set is fully utilized and
0013 checking that it survives context switches.  If the routines are
0014 subprograms, then calling conventions and scoping rules apply.  Thus
0015 the variables do not exist throughout the entire life of the task
0016 as in the C test.
0017 
0018 It seems to point out that although the conditional compilation
0019 and macro capabilities of C are often abused, they do provide
0020 capabilities which are difficult if not impossible to mimic entirely
0021 with subprograms.