source: ada-examples/stack_check/README @ 92f495a

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
5This directory contains a simple example program to demonstrate
6the stack checking capabilities of the GNAT Run-Time System
7in conjunction with RTEMS.  In this example, a recursive procedure
8is called until we run out of stack space.  The GNAT RTS invokes
9the standard RTEMS dynamic stack checking routine,
10rtems_stack_checker_is_blown, which checks the current stack pointer
11and the pattern area for damage.  If either indicates a blown
12stack, then a message is printed and an indication of the blown
13stack is returned to GNAT which raises an Ada exception.
Note: See TracBrowser for help on using the repository browser.