source: ada-examples/hello_world_ada/README.PSIM @ 63e8156

ada-examples-4-10-branchada-examples-4-7-branchada-examples-4-8-branchada-examples-4-9-branch
Last change on this file since 63e8156 was 3ea7406, checked in by Joel Sherrill <joel.sherrill@…>, on Jan 29, 2003 at 2:04:21 PM

2003-01-29 Joel Sherrill <joel@…>

  • hello_world_ada/README.ERC32, hello_world_ada/README.PSIM: Now include CVS Ids.
  • hello_world_ada/Makefile.jmr3904: New file.
  • Property mode set to 100644
File size: 2.2 KB
Line 
1#
2#  $Id$
3#
4
5In this directory, there are the following files:
6
7    Makefile  - Example Makefile file
8    README    - the file you are reading.
9    hello.adb - simple hello world file
10    init.c    - RTEMS initialization thread which invokes the Ada main
11
12The following make stanza are included:
13
14    all   - This stanza builds the executable hello.
15
16    run   - This invokes the PowerPC Simulator (PSIM) on hello.
17
18    gdb   - This invokes gdb with the integrated PowerPC Simulator
19            (PSIM) on hello.
20
21    clean - This stanza removes all generated files.
22
23The tool directory must be in your path for this to work. 
24
25SAMPLE SESSION WITH PSIM
26========================
27
28The following is a sample session with psim:
29
30    $ gmake run
31
32    /home/joel/gnat-3.10p/powerpc-rtems//bin/psim hello
33    Hello World
34    Hello World
35    gmake: *** [run] Error 132
36
37At this point, programs run under the powerpc-rtems-run command
38restart a second time.  This is an known problem with the RTEMS PSIM
39Board Support Package.
40
41Note that the powerpc-rtems-run command has no interactive mode.
42
43 
44SAMPLE SESSION WITH GDB
45=======================
46
47The following is a sample session with sis:
48
49    $ gmake gdb
50    /home/joel/gnat-3.10p/powerpc-rtems//bin/psim-gdb hello
51    GNU gdb 4.16.1a
52    Copyright 1996 Free Software Foundation, Inc.
53    GDB is free software, covered by the GNU General Public License, and you are
54    welcome to change it and/or distribute copies of it under certain conditions.
55    Type "show copying" to see the conditions.
56    There is absolutely no warranty for GDB.  Type "show warranty" for details.
57    This GDB was configured as "--host=i486-linux --target=powerpc-unknown-eabi"...
58    Connected to the simulator.
59    (gdb) run
60    Starting program: /usr1/rtems/work/tools_ada/example/hello
61    Hello World
62    (gdb) quit
63    The program is running.  Quit anyway (and kill it)? (y or n) y
64
65
66Note that the user typed "run" to start the executable and "quit" to
67exit the debugger.  Other gdb commands function the same as when gdb
68is used natively.
69
70The program "psim-gdb" is a script which always invokes a command file
71to initialize the simulator and load the executable into the simulator's
72memory.
73
74
Note: See TracBrowser for help on using the repository browser.