... | ... |
@@ -54,11 +54,15 @@ static void help(void) |
54 | 54 |
printf("clambc <file> [function] [param1 ...]\n\n"); |
55 | 55 |
printf(" --help -h Show help\n"); |
56 | 56 |
printf(" --version -V Show version\n"); |
57 |
+ printf(" --debug Show debug\n"); |
|
58 |
+ printf(" --force-interpreter -f Force using the interpreter instead of the JIT\n"); |
|
59 |
+ printf(" --trust-bytecode -t Trust loaded bytecode (default yes)\n"); |
|
57 | 60 |
printf(" --info -i Print information about bytecode\n"); |
58 | 61 |
printf(" --printsrc -p Print bytecode source\n"); |
59 |
- printf(" --printbcir -c Print bytecode IR\n"); |
|
60 |
- printf(" --trace <level> Set bytecode trace level 0..7 (default 7)\n"); |
|
61 |
- printf(" --no-trace-showsource Don't show source line during tracing\n"); |
|
62 |
+ printf(" --printbcir -c Print IR of bytecode signature\n"); |
|
63 |
+ printf(" --trace <level> -t Set bytecode trace level 0..7 (default 7)\n"); |
|
64 |
+ printf(" --no-trace-showsource -s Don't show source line during tracing\n"); |
|
65 |
+ printf(" --bytecode-statistics Collect and print bytecode execution statistics\n"); |
|
62 | 66 |
printf(" file file to test\n"); |
63 | 67 |
printf("\n"); |
64 | 68 |
return; |
... | ... |
@@ -12,6 +12,15 @@ Show help |
12 | 12 |
\fB\-\-version\fR \fB\-V\fR |
13 | 13 |
Show version |
14 | 14 |
.TP |
15 |
+\fB\-\-debug\fR |
|
16 |
+Show debug |
|
17 |
+.TP |
|
18 |
+\fB\-\-force\-interpreter\fR \fB\-f\fR |
|
19 |
+Force using the interpreter instead of the JIT |
|
20 |
+.TP |
|
21 |
+\fB\-\-trust\-bytecode\fR \fB\-t\fR |
|
22 |
+Trust loaded bytecode (default yes) |
|
23 |
+.TP |
|
15 | 24 |
\fB\-\-info\fR \fB\-i\fR |
16 | 25 |
Print information about bytecode |
17 | 26 |
.TP |
... | ... |
@@ -19,14 +28,20 @@ Print information about bytecode |
19 | 19 |
Print bytecode source |
20 | 20 |
.TP |
21 | 21 |
\fB\-\-printbcir\fR \fB\-c\fR |
22 |
-Print bytecode IR |
|
22 |
+Print IR of bytecode signature |
|
23 | 23 |
.TP |
24 |
-\fB\-\-trace\fR <level> |
|
24 |
+\fB\-\-input\fR \fB\-r\fR |
|
25 |
+Input file to run the bytecode on |
|
26 |
+.TP |
|
27 |
+\fB\-\-trace\fR <level> \fB\-l\fR |
|
25 | 28 |
Set bytecode trace level 0..7 (default 7) |
26 | 29 |
.TP |
27 | 30 |
\fB\-\-no\-trace\-showsource\fR |
28 | 31 |
Don't show source line during tracing |
29 | 32 |
.TP |
33 |
+\fB\-\-bytecode\-statistics\fR |
|
34 |
+Collect and print bytecode execution statistics |
|
35 |
+.TP |
|
30 | 36 |
file |
31 | 37 |
file to test |
32 | 38 |
.SH "CREDITS" |
... | ... |
@@ -141,7 +141,7 @@ const struct clam_option __clam_options[] = { |
141 | 141 |
{ NULL, "trust-bytecode", 't', CLOPT_TYPE_BOOL, MATCH_BOOL, 1, NULL, 0, OPT_CLAMBC, "Trust loaded bytecode (default yes)", ""}, |
142 | 142 |
{ NULL, "info", 'i', CLOPT_TYPE_BOOL, MATCH_BOOL, 0, NULL, 0, OPT_CLAMBC, "Load and print bytecode information without executing", ""}, |
143 | 143 |
{ NULL, "printsrc", 'p', CLOPT_TYPE_BOOL, MATCH_BOOL, 0, NULL, 0, OPT_CLAMBC, "Print source code of bytecode", ""}, |
144 |
- { NULL, "printbcir", 'c', CLOPT_TYPE_BOOL, MATCH_BOOL, 0, NULL, 0, OPT_CLAMBC, "Print bytecode representation of bytecode signature", ""}, |
|
144 |
+ { NULL, "printbcir", 'c', CLOPT_TYPE_BOOL, MATCH_BOOL, 0, NULL, 0, OPT_CLAMBC, "Print IR of bytecode signature", ""}, |
|
145 | 145 |
{ NULL, "input", 'r', CLOPT_TYPE_STRING, NULL, -1, NULL, 0, OPT_CLAMBC, "Input file to run the bytecode n", ""}, |
146 | 146 |
{ NULL, "trace", 'l', CLOPT_TYPE_NUMBER, MATCH_NUMBER, 7, NULL, 0, OPT_CLAMBC, "bytecode trace level",""}, |
147 | 147 |
{ NULL, "no-trace-showsource", 's', CLOPT_TYPE_BOOL, MATCH_BOOL, 0, NULL, 0, OPT_CLAMBC, "Don't show source line during tracing",""}, |