summaryrefslogtreecommitdiffstats
path: root/stack_check/README
blob: 6c042f46ad255ff0184a9ca2b66f91b4f20f6c3a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#
#  $Id$
#

This directory contains a simple example program to demonstrate
the stack checking capabilities of the GNAT Run-Time System
in conjunction with RTEMS.  In this example, a recursive procedure
is called until we run out of stack space.  The GNAT RTS invokes
the standard RTEMS dynamic stack checking routine,
rtems_stack_checker_is_blown, which checks the current stack pointer
and the pattern area for damage.  If either indicates a blown
stack, then a message is printed and an indication of the blown
stack is returned to GNAT which raises an Ada exception.