Start of tests for this.
Chris Pressey
5 years ago
9 | 9 |
"tests/SixtyPical Storage.md" \
|
10 | 10 |
"tests/SixtyPical Control Flow.md" \
|
11 | 11 |
"tests/SixtyPical Fallthru.md" \
|
|
12 |
"tests/SixtyPical Callgraph.md" \
|
12 | 13 |
"tests/SixtyPical Compilation.md"
|
|
0 |
SixtyPical Callgraph
|
|
1 |
====================
|
|
2 |
|
|
3 |
This is a test suite, written in [Falderal][] format, for the ability of
|
|
4 |
a SixtyPical analyzer to construct a callgraph of which routines call which
|
|
5 |
other routines, and its ability to discover which routines will never be
|
|
6 |
called.
|
|
7 |
|
|
8 |
[Falderal]: http://catseye.tc/node/Falderal
|
|
9 |
|
|
10 |
-> Tests for functionality "Dump callgraph info for SixtyPical program"
|
|
11 |
|
|
12 |
The `main` routine is always called.
|
|
13 |
|
|
14 |
| define main routine
|
|
15 |
| {
|
|
16 |
| }
|
|
17 |
= [
|
|
18 |
= [
|
|
19 |
= "main"
|
|
20 |
= ]
|
|
21 |
= ]
|
15 | 15 |
-> Functionality "Dump fallthru info for SixtyPical program" is implemented by
|
16 | 16 |
-> shell command "bin/sixtypical --optimize-fallthru --dump-fallthru-info --analyze-only --traceback %(test-body-file)"
|
17 | 17 |
|
|
18 |
-> Functionality "Dump callgraph info for SixtyPical program" is implemented by
|
|
19 |
-> shell command "bin/sixtypical --dump-callgraph --analyze-only --traceback %(test-body-file)"
|
|
20 |
|
18 | 21 |
-> Functionality "Compile SixtyPical program with fallthru optimization" is implemented by
|
19 | 22 |
-> shell command "bin/sixtypical --output-format=c64-basic-prg --optimize-fallthru --traceback %(test-body-file) --output /tmp/foo && tests/appliances/bin/dcc6502-adapter </tmp/foo"
|