source: rtems/c/src/ada-tests/sptests/sp19/README @ 9b4422a2

4.115
Last change on this file since 9b4422a2 was 9b4422a2, checked in by Joel Sherrill <joel.sherrill@…>, on 05/03/12 at 15:09:24

Remove All CVS Id Strings Possible Using a Script

Script does what is expected and tries to do it as
smartly as possible.

+ remove occurrences of two blank comment lines

next to each other after Id string line removed.

+ remove entire comment blocks which only exited to

contain CVS Ids

+ If the processing left a blank line at the top of

a file, it was removed.

  • 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.