source: rtems/c/src/ada-tests/sptests/sp19/README @ 48bfd992

4.104.114.84.95
Last change on this file since 48bfd992 was ac953f2, checked in by Joel Sherrill <joel.sherrill@…>, on Jun 3, 1997 at 6:38:40 PM

new files

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