Debian Codegraph @

examples/scripts/README

raw
1 Scripting
2
3 DEC04
4
5 This directory illustrates some basic gpsim scripting.
6
7 NOTE: As of this writing, the Python scripts are not working!
8
9 What's here:
10 -----------
11
12 The script 'client.cc' is a C++ program that's designed to interface
13 with gpsim through a socket interface. This script will load the PIC
14 program gensquares.cod and instrument it with some regression testing
15 tools. The comments in client.cc discuss what exactly is tested in the
16 example regression test.
17
18 How to use it
19 -------------
20
21 The makefile will do two things: it'll assemble the PIC program
22 gensquares.asm and it will compile the C++ script client.cc. Typing
23 'make' at the command line should execute both of these rules.
24
25 Gpsim must be compiled to accept socket connections. Rebuild gpsim using
26 the --enable-sockets option in configure before building it.
27
28 The script is designed to communicate with gpsim. So gpsim needs to be
29 running first in this directory. Once that's done, the script can be run:
30
31 $ make
32 $ ./client
33
34 And it should respond with:
35
36 The simulation passed!