ada-examples-4-10-branch
Last change
on this file since 92f495a was
790d114,
checked in by Joel Sherrill <joel.sherrill@…>, on 09/28/07 at 14:31:43
|
2007-09-28 Joel Sherrill <joel.sherrill@…>
- .cvsiginore, ChangeLog?, Makefile, README, stack_check.adb: New files.
|
-
Property mode set to
100644
|
File size:
572 bytes
|
Line | |
---|
1 | # |
---|
2 | # $Id$ |
---|
3 | # |
---|
4 | |
---|
5 | This directory contains a simple example program to demonstrate |
---|
6 | the stack checking capabilities of the GNAT Run-Time System |
---|
7 | in conjunction with RTEMS. In this example, a recursive procedure |
---|
8 | is called until we run out of stack space. The GNAT RTS invokes |
---|
9 | the standard RTEMS dynamic stack checking routine, |
---|
10 | rtems_stack_checker_is_blown, which checks the current stack pointer |
---|
11 | and the pattern area for damage. If either indicates a blown |
---|
12 | stack, then a message is printed and an indication of the blown |
---|
13 | stack is returned to GNAT which raises an Ada exception. |
---|
Note: See
TracBrowser
for help on using the repository browser.