mirror of
https://github.com/ganelson/inform.git
synced 2024-06-17 07:40:47 +03:00
Added -basic command-line switch
This commit is contained in:
parent
cc4287a9e7
commit
850901508d
|
@ -193,13 +193,17 @@ the switch <span class="extract"><span class="ConsoleText-extract-syntax">-rng</
|
|||
Inter code, which have to be merged in. This process is carried out by a copy
|
||||
of the Inter tool inside <span class="extract"><span class="ConsoleText-extract-syntax">inform7</span></span>, and the choice of which kits are needed is
|
||||
managed by Inbuild. The <span class="extract"><span class="ConsoleText-extract-syntax">inform7</span></span> command line allows this process to be
|
||||
customised. In particular, <span class="extract"><span class="ConsoleText-extract-syntax">-kit BasicInformKit</span></span> will cause Inform to compile
|
||||
customised. In particular, <span class="extract"><span class="ConsoleText-extract-syntax">-basic</span></span> will cause Inform to compile
|
||||
a "basic" project with no command parser or world model, and in general no
|
||||
interactive fiction-related infrastructure: it converts Inform into a
|
||||
general-purpose programming language. For examples of Basic Inform programs,
|
||||
see the test cases in <span class="extract"><span class="ConsoleText-extract-syntax">inform7/Tests/Test Basic</span></span>.
|
||||
</p>
|
||||
|
||||
<p class="commentary"><span class="extract"><span class="ConsoleText-extract-syntax">-basic</span></span> is actually just an abbreviation for <span class="extract"><span class="ConsoleText-extract-syntax">-kit BasicInformKit</span></span>, and
|
||||
other kits can also be included. See <a href="../inbuild/index.html" class="internal">inbuild</a> for more on kits.
|
||||
</p>
|
||||
|
||||
<p class="commentary">The three commands <span class="extract"><span class="ConsoleText-extract-syntax">-pipeline</span></span>, <span class="extract"><span class="ConsoleText-extract-syntax">-pipeline-file</span></span> and <span class="extract"><span class="ConsoleText-extract-syntax">-variable</span></span> control
|
||||
the way Inter performs code-generation on the output from <span class="extract"><span class="ConsoleText-extract-syntax">inform7</span></span>. Again,
|
||||
these needn't be used in normal circumstances, because the defaults are fine.
|
||||
|
|
|
@ -84,41 +84,41 @@ which take more than 1/1000th of the total running time.
|
|||
|
||||
<pre class="undisplayed-code all-displayed-code code-font">
|
||||
<span class="plain-syntax">100.0% in inform7 run</span>
|
||||
<span class="plain-syntax"> 54.0% in compilation to Inter</span>
|
||||
<span class="plain-syntax"> 39.4% in </span><a href="../core-module/1-htc.html#SP9" class="internal">Sequence::undertake_queued_tasks</a>
|
||||
<span class="plain-syntax"> 3.3% in </span><a href="../assertions-module/2-ptmn.html#SP1" class="internal">MajorNodes::pre_pass</a>
|
||||
<span class="plain-syntax"> 2.5% in </span><a href="../assertions-module/2-ptmn.html#SP1" class="internal">MajorNodes::pass_1</a>
|
||||
<span class="plain-syntax"> 54.3% in compilation to Inter</span>
|
||||
<span class="plain-syntax"> 39.6% in </span><a href="../core-module/1-htc.html#SP9" class="internal">Sequence::undertake_queued_tasks</a>
|
||||
<span class="plain-syntax"> 3.4% in </span><a href="../assertions-module/2-ptmn.html#SP1" class="internal">MajorNodes::pre_pass</a>
|
||||
<span class="plain-syntax"> 2.6% in </span><a href="../assertions-module/2-ptmn.html#SP1" class="internal">MajorNodes::pass_1</a>
|
||||
<span class="plain-syntax"> 1.4% in </span><a href="../runtime-module/6-pi.html#SP1" class="internal">RTPhrasebook::compile_entries</a>
|
||||
<span class="plain-syntax"> 1.3% in </span><a href="../assertions-module/5-id.html#SP4" class="internal">ImperativeDefinitions::assess_all</a>
|
||||
<span class="plain-syntax"> 1.3% in </span><a href="../runtime-module/6-pi.html#SP1" class="internal">RTPhrasebook::compile_entries</a>
|
||||
<span class="plain-syntax"> 1.2% in </span><a href="../runtime-module/5-kc.html#SP10" class="internal">RTKindConstructors::compile</a>
|
||||
<span class="plain-syntax"> 0.4% in </span><a href="../assertions-module/5-id.html#SP5" class="internal">ImperativeDefinitions::compile_first_block</a>
|
||||
<span class="plain-syntax"> 1.1% in </span><a href="../runtime-module/5-kc.html#SP10" class="internal">RTKindConstructors::compile</a>
|
||||
<span class="plain-syntax"> 0.4% in </span><a href="../assertions-module/2-ptmn.html#SP1" class="internal">MajorNodes::pass_2</a>
|
||||
<span class="plain-syntax"> 0.4% in </span><a href="../core-module/1-htc.html#SP9" class="internal">Sequence::undertake_queued_tasks</a>
|
||||
<span class="plain-syntax"> 0.4% in </span><a href="../core-module/1-htc.html#SP9" class="internal">Sequence::undertake_queued_tasks</a>
|
||||
<span class="plain-syntax"> 0.4% in </span><a href="../knowledge-module/5-tmw.html#SP5" class="internal">World::stage_V</a>
|
||||
<span class="plain-syntax"> 0.2% in </span><a href="../runtime-module/3-cm.html#SP1" class="internal">CompletionModule::compile</a>
|
||||
<span class="plain-syntax"> 0.2% in </span><a href="../assertions-module/5-id.html#SP5" class="internal">ImperativeDefinitions::compile_first_block</a>
|
||||
<span class="plain-syntax"> 0.1% in </span><a href="../runtime-module/3-cm.html#SP1" class="internal">CompletionModule::compile</a>
|
||||
<span class="plain-syntax"> 0.1% in </span><a href="../knowledge-module/4-is.html#SP27" class="internal">InferenceSubjects::emit_all</a>
|
||||
<span class="plain-syntax"> 0.1% in </span><a href="../runtime-module/5-kc.html#SP10_7" class="internal">RTKindConstructors::compile_permissions</a>
|
||||
<span class="plain-syntax"> 0.1% in </span><a href="../core-module/1-wtc.html#SP9" class="internal">Task::make_built_in_kind_constructors</a>
|
||||
<span class="plain-syntax"> 0.1% in </span><a href="../knowledge-module/5-tmw.html#SP3" class="internal">World::stages_II_and_III</a>
|
||||
<span class="plain-syntax"> 1.9% not specifically accounted for</span>
|
||||
<span class="plain-syntax"> 44.0% in running Inter pipeline</span>
|
||||
<span class="plain-syntax"> 11.6% in step preparation</span>
|
||||
<span class="plain-syntax"> 10.1% in inter step 7/15: consolidate-text</span>
|
||||
<span class="plain-syntax"> 8.1% in inter step 2/15: link</span>
|
||||
<span class="plain-syntax"> 7.8% in inter step 15/15: generate inform6 -> auto.inf</span>
|
||||
<span class="plain-syntax"> 1.6% in inter step 11/15: make-identifiers-unique</span>
|
||||
<span class="plain-syntax"> 43.6% in running Inter pipeline</span>
|
||||
<span class="plain-syntax"> 11.9% in step preparation</span>
|
||||
<span class="plain-syntax"> 9.5% in inter step 7/15: consolidate-text</span>
|
||||
<span class="plain-syntax"> 7.9% in inter step 15/15: generate inform6 -> auto.inf</span>
|
||||
<span class="plain-syntax"> 7.9% in inter step 2/15: link</span>
|
||||
<span class="plain-syntax"> 1.5% in inter step 11/15: make-identifiers-unique</span>
|
||||
<span class="plain-syntax"> 0.4% in inter step 12/15: reconcile-verbs</span>
|
||||
<span class="plain-syntax"> 0.2% in inter step 10/15: detect-indirect-calls</span>
|
||||
<span class="plain-syntax"> 0.2% in inter step 14/15: eliminate-redundant-operations</span>
|
||||
<span class="plain-syntax"> 0.2% in inter step 6/15: assimilate</span>
|
||||
<span class="plain-syntax"> 0.2% in inter step 8/15: resolve-external-symbols</span>
|
||||
<span class="plain-syntax"> 0.2% in inter step 9/15: inspect-plugs</span>
|
||||
<span class="plain-syntax"> 0.1% in inter step 10/15: detect-indirect-calls</span>
|
||||
<span class="plain-syntax"> 0.1% in inter step 13/15: eliminate-redundant-labels</span>
|
||||
<span class="plain-syntax"> 0.1% in inter step 4/15: parse-linked-matter</span>
|
||||
<span class="plain-syntax"> 0.1% in inter step 5/15: resolve-conditional-compilation</span>
|
||||
<span class="plain-syntax"> 2.5% not specifically accounted for</span>
|
||||
<span class="plain-syntax"> 1.6% in supervisor</span>
|
||||
<span class="plain-syntax"> 2.4% not specifically accounted for</span>
|
||||
<span class="plain-syntax"> 1.7% in supervisor</span>
|
||||
<span class="plain-syntax"> 0.3% not specifically accounted for</span>
|
||||
</pre>
|
||||
<p class="commentary firstcommentary"><a id="SP3" class="paragraph-anchor"></a><b>§3. Memory consumption. </b>The following gives some idea of which classes of object have the most
|
||||
|
@ -130,7 +130,7 @@ represent less than 1/1000th of the total.
|
|||
<pre class="undisplayed-code all-displayed-code code-font">
|
||||
<span class="plain-syntax">Total memory consumption was 383663K = 375 MB</span>
|
||||
|
||||
<span class="plain-syntax">61.5% was used for 1991443 objects, in 368767 frames in 295 x 800K = 236000K = 230 MB:</span>
|
||||
<span class="plain-syntax">61.5% was used for 1991444 objects, in 368768 frames in 295 x 800K = 236000K = 230 MB:</span>
|
||||
|
||||
<span class="plain-syntax"> 10.6% inter_tree_node_array 58 x 8192 = 475136 objects, 41813824 bytes</span>
|
||||
<span class="plain-syntax"> 7.3% text_stream_array 5126 x 100 = 512600 objects, 28869632 bytes</span>
|
||||
|
@ -259,7 +259,7 @@ represent less than 1/1000th of the total.
|
|||
<span class="plain-syntax"> ---- activity 35 objects, 3920 bytes</span>
|
||||
<span class="plain-syntax"> ---- submodule_request 94 objects, 3760 bytes</span>
|
||||
<span class="plain-syntax"> ---- parse_node_annotation_type 114 objects, 3648 bytes</span>
|
||||
<span class="plain-syntax"> ---- command_line_switch 43 objects, 3440 bytes</span>
|
||||
<span class="plain-syntax"> ---- command_line_switch 44 objects, 3520 bytes</span>
|
||||
<span class="plain-syntax"> ---- compatibility_specification 70 objects, 3360 bytes</span>
|
||||
<span class="plain-syntax"> ---- property_setting_bp_data 84 objects, 3360 bytes</span>
|
||||
<span class="plain-syntax"> ---- method_set 103 objects, 3296 bytes</span>
|
||||
|
@ -364,7 +364,7 @@ represent less than 1/1000th of the total.
|
|||
|
||||
<span class="plain-syntax">38.4% was used for memory not allocated for objects:</span>
|
||||
|
||||
<span class="plain-syntax"> 19.1% text stream storage 75429500 bytes in 530079 claims</span>
|
||||
<span class="plain-syntax"> 19.1% text stream storage 75429976 bytes in 530083 claims</span>
|
||||
<span class="plain-syntax"> 4.6% dictionary storage 18098176 bytes in 33115 claims</span>
|
||||
<span class="plain-syntax"> ---- sorting 744 bytes in 3 claims</span>
|
||||
<span class="plain-syntax"> 1.8% source text 7200000 bytes in 3 claims</span>
|
||||
|
@ -382,7 +382,7 @@ represent less than 1/1000th of the total.
|
|||
<span class="plain-syntax"> ---- code generation workspace for objects 9600 bytes in 9 claims</span>
|
||||
<span class="plain-syntax"> ---- emitter array storage 160512 bytes in 2042 claims</span>
|
||||
|
||||
<span class="plain-syntax">18.4% was overhead - 72309928 bytes = 70615K = 68 MB</span>
|
||||
<span class="plain-syntax">18.4% was overhead - 72309848 bytes = 70615K = 68 MB</span>
|
||||
</pre>
|
||||
<p class="commentary firstcommentary"><a id="SP4" class="paragraph-anchor"></a><b>§4. Preform grammar. </b>The full annotated description of the Preform grammar (see <a href="../words-module/4-ap.html" class="internal">About Preform (in words)</a>),
|
||||
with optimisation details and hit/miss statistics added, is also long: it's
|
||||
|
|
|
@ -233,6 +233,7 @@ but <span class="extract"><span class="extract-syntax">-pipeline-file</span></sp
|
|||
|
||||
<pre class="definitions code-font"><span class="definition-keyword">enum</span> <span class="constant-syntax">INBUILD_INTER_CLSG</span>
|
||||
<span class="definition-keyword">enum</span> <span class="constant-syntax">KIT_CLSW</span>
|
||||
<span class="definition-keyword">enum</span> <span class="constant-syntax">BASIC_CLSW</span>
|
||||
<span class="definition-keyword">enum</span> <span class="constant-syntax">PIPELINE_CLSW</span>
|
||||
<span class="definition-keyword">enum</span> <span class="constant-syntax">PIPELINE_FILE_CLSW</span>
|
||||
<span class="definition-keyword">enum</span> <span class="constant-syntax">PIPELINE_VARIABLE_CLSW</span>
|
||||
|
@ -242,6 +243,8 @@ but <span class="extract"><span class="extract-syntax">-pipeline-file</span></sp
|
|||
|
||||
<pre class="displayed-code all-displayed-code code-font">
|
||||
<span class="plain-syntax"> </span><span class="identifier-syntax">CommandLine::begin_group</span><span class="plain-syntax">(</span><span class="constant-syntax">INBUILD_INTER_CLSG</span><span class="plain-syntax">, </span><span class="identifier-syntax">I</span><span class="string-syntax">"for tweaking code generation from Inter"</span><span class="plain-syntax">);</span>
|
||||
<span class="plain-syntax"> </span><span class="identifier-syntax">CommandLine::declare_switch</span><span class="plain-syntax">(</span><span class="constant-syntax">BASIC_CLSW</span><span class="plain-syntax">, </span><span class="identifier-syntax">L</span><span class="string-syntax">"basic"</span><span class="plain-syntax">, </span><span class="constant-syntax">1</span><span class="plain-syntax">,</span>
|
||||
<span class="plain-syntax"> </span><span class="identifier-syntax">L</span><span class="string-syntax">"use Basic Inform language (same as -kit BasicInformKit)"</span><span class="plain-syntax">);</span>
|
||||
<span class="plain-syntax"> </span><span class="identifier-syntax">CommandLine::declare_switch</span><span class="plain-syntax">(</span><span class="constant-syntax">KIT_CLSW</span><span class="plain-syntax">, </span><span class="identifier-syntax">L</span><span class="string-syntax">"kit"</span><span class="plain-syntax">, </span><span class="constant-syntax">2</span><span class="plain-syntax">,</span>
|
||||
<span class="plain-syntax"> </span><span class="identifier-syntax">L</span><span class="string-syntax">"include Inter code from the kit called X"</span><span class="plain-syntax">);</span>
|
||||
<span class="plain-syntax"> </span><span class="identifier-syntax">CommandLine::declare_switch</span><span class="plain-syntax">(</span><span class="constant-syntax">PIPELINE_CLSW</span><span class="plain-syntax">, </span><span class="identifier-syntax">L</span><span class="string-syntax">"pipeline"</span><span class="plain-syntax">, </span><span class="constant-syntax">2</span><span class="plain-syntax">,</span>
|
||||
|
@ -312,6 +315,7 @@ it doesn't know about, that will be one of ourse, so it should call the followin
|
|||
<span class="plain-syntax"> </span><a href="1-ic.html#SP12" class="function-link"><span class="function-syntax">Supervisor::add_nest</span></a><span class="plain-syntax">(</span><span class="identifier-syntax">Pathnames::from_text</span><span class="plain-syntax">(</span><span class="identifier-syntax">arg</span><span class="plain-syntax">), </span><span class="constant-syntax">EXTERNAL_NEST_TAG</span><span class="plain-syntax">); </span><span class="reserved-syntax">break</span><span class="plain-syntax">;</span>
|
||||
<span class="plain-syntax"> </span><span class="reserved-syntax">case</span><span class="plain-syntax"> </span><span class="identifier-syntax">TRANSIENT_CLSW:</span>
|
||||
<span class="plain-syntax"> </span><span class="identifier-syntax">shared_transient_resources</span><span class="plain-syntax"> = </span><span class="identifier-syntax">Pathnames::from_text</span><span class="plain-syntax">(</span><span class="identifier-syntax">arg</span><span class="plain-syntax">); </span><span class="reserved-syntax">break</span><span class="plain-syntax">;</span>
|
||||
<span class="plain-syntax"> </span><span class="reserved-syntax">case</span><span class="plain-syntax"> </span><span class="identifier-syntax">BASIC_CLSW:</span><span class="plain-syntax"> </span><a href="1-ic.html#SP20" class="function-link"><span class="function-syntax">Supervisor::request_kit</span></a><span class="plain-syntax">(</span><span class="identifier-syntax">I</span><span class="string-syntax">"BasicInformKit"</span><span class="plain-syntax">); </span><span class="reserved-syntax">break</span><span class="plain-syntax">;</span>
|
||||
<span class="plain-syntax"> </span><span class="reserved-syntax">case</span><span class="plain-syntax"> </span><span class="identifier-syntax">KIT_CLSW:</span><span class="plain-syntax"> </span><a href="1-ic.html#SP20" class="function-link"><span class="function-syntax">Supervisor::request_kit</span></a><span class="plain-syntax">(</span><span class="identifier-syntax">arg</span><span class="plain-syntax">); </span><span class="reserved-syntax">break</span><span class="plain-syntax">;</span>
|
||||
<span class="plain-syntax"> </span><span class="reserved-syntax">case</span><span class="plain-syntax"> </span><span class="identifier-syntax">PROJECT_CLSW:</span>
|
||||
<span class="plain-syntax"> </span><span class="reserved-syntax">if</span><span class="plain-syntax"> (</span><a href="1-ic.html#SP18" class="function-link"><span class="function-syntax">Supervisor::set_I7_bundle</span></a><span class="plain-syntax">(</span><span class="identifier-syntax">arg</span><span class="plain-syntax">) == </span><span class="identifier-syntax">FALSE</span><span class="plain-syntax">)</span>
|
||||
|
|
|
@ -150,12 +150,15 @@ but |-pipeline-file| and |-variable| have the same effect as they would there.
|
|||
@e INBUILD_INTER_CLSG
|
||||
|
||||
@e KIT_CLSW
|
||||
@e BASIC_CLSW
|
||||
@e PIPELINE_CLSW
|
||||
@e PIPELINE_FILE_CLSW
|
||||
@e PIPELINE_VARIABLE_CLSW
|
||||
|
||||
@<Declare Inter-related options@> =
|
||||
CommandLine::begin_group(INBUILD_INTER_CLSG, I"for tweaking code generation from Inter");
|
||||
CommandLine::declare_switch(BASIC_CLSW, L"basic", 1,
|
||||
L"use Basic Inform language (same as -kit BasicInformKit)");
|
||||
CommandLine::declare_switch(KIT_CLSW, L"kit", 2,
|
||||
L"include Inter code from the kit called X");
|
||||
CommandLine::declare_switch(PIPELINE_CLSW, L"pipeline", 2,
|
||||
|
@ -220,6 +223,7 @@ void Supervisor::option(int id, int val, text_stream *arg, void *state) {
|
|||
Supervisor::add_nest(Pathnames::from_text(arg), EXTERNAL_NEST_TAG); break;
|
||||
case TRANSIENT_CLSW:
|
||||
shared_transient_resources = Pathnames::from_text(arg); break;
|
||||
case BASIC_CLSW: Supervisor::request_kit(I"BasicInformKit"); break;
|
||||
case KIT_CLSW: Supervisor::request_kit(arg); break;
|
||||
case PROJECT_CLSW:
|
||||
if (Supervisor::set_I7_bundle(arg) == FALSE)
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
Total memory consumption was 383663K = 375 MB
|
||||
|
||||
61.5% was used for 1991443 objects, in 368767 frames in 295 x 800K = 236000K = 230 MB:
|
||||
61.5% was used for 1991444 objects, in 368768 frames in 295 x 800K = 236000K = 230 MB:
|
||||
|
||||
10.6% inter_tree_node_array 58 x 8192 = 475136 objects, 41813824 bytes
|
||||
7.3% text_stream_array 5126 x 100 = 512600 objects, 28869632 bytes
|
||||
|
@ -129,7 +129,7 @@ Total memory consumption was 383663K = 375 MB
|
|||
---- activity 35 objects, 3920 bytes
|
||||
---- submodule_request 94 objects, 3760 bytes
|
||||
---- parse_node_annotation_type 114 objects, 3648 bytes
|
||||
---- command_line_switch 43 objects, 3440 bytes
|
||||
---- command_line_switch 44 objects, 3520 bytes
|
||||
---- compatibility_specification 70 objects, 3360 bytes
|
||||
---- property_setting_bp_data 84 objects, 3360 bytes
|
||||
---- method_set 103 objects, 3296 bytes
|
||||
|
@ -234,7 +234,7 @@ Total memory consumption was 383663K = 375 MB
|
|||
|
||||
38.4% was used for memory not allocated for objects:
|
||||
|
||||
19.1% text stream storage 75429500 bytes in 530079 claims
|
||||
19.1% text stream storage 75429976 bytes in 530083 claims
|
||||
4.6% dictionary storage 18098176 bytes in 33115 claims
|
||||
---- sorting 744 bytes in 3 claims
|
||||
1.8% source text 7200000 bytes in 3 claims
|
||||
|
@ -252,5 +252,5 @@ Total memory consumption was 383663K = 375 MB
|
|||
---- code generation workspace for objects 9600 bytes in 9 claims
|
||||
---- emitter array storage 160512 bytes in 2042 claims
|
||||
|
||||
18.4% was overhead - 72309928 bytes = 70615K = 68 MB
|
||||
18.4% was overhead - 72309848 bytes = 70615K = 68 MB
|
||||
|
||||
|
|
|
@ -1,37 +1,37 @@
|
|||
100.0% in inform7 run
|
||||
54.0% in compilation to Inter
|
||||
39.4% in //Sequence::undertake_queued_tasks//
|
||||
3.3% in //MajorNodes::pre_pass//
|
||||
2.5% in //MajorNodes::pass_1//
|
||||
54.3% in compilation to Inter
|
||||
39.6% in //Sequence::undertake_queued_tasks//
|
||||
3.4% in //MajorNodes::pre_pass//
|
||||
2.6% in //MajorNodes::pass_1//
|
||||
1.4% in //RTPhrasebook::compile_entries//
|
||||
1.3% in //ImperativeDefinitions::assess_all//
|
||||
1.3% in //RTPhrasebook::compile_entries//
|
||||
1.2% in //RTKindConstructors::compile//
|
||||
0.4% in //ImperativeDefinitions::compile_first_block//
|
||||
1.1% in //RTKindConstructors::compile//
|
||||
0.4% in //MajorNodes::pass_2//
|
||||
0.4% in //Sequence::undertake_queued_tasks//
|
||||
0.4% in //Sequence::undertake_queued_tasks//
|
||||
0.4% in //World::stage_V//
|
||||
0.2% in //CompletionModule::compile//
|
||||
0.2% in //ImperativeDefinitions::compile_first_block//
|
||||
0.1% in //CompletionModule::compile//
|
||||
0.1% in //InferenceSubjects::emit_all//
|
||||
0.1% in //RTKindConstructors::compile_permissions//
|
||||
0.1% in //Task::make_built_in_kind_constructors//
|
||||
0.1% in //World::stages_II_and_III//
|
||||
1.9% not specifically accounted for
|
||||
44.0% in running Inter pipeline
|
||||
11.6% in step preparation
|
||||
10.1% in inter step 7/15: consolidate-text
|
||||
8.1% in inter step 2/15: link
|
||||
7.8% in inter step 15/15: generate inform6 -> auto.inf
|
||||
1.6% in inter step 11/15: make-identifiers-unique
|
||||
43.6% in running Inter pipeline
|
||||
11.9% in step preparation
|
||||
9.5% in inter step 7/15: consolidate-text
|
||||
7.9% in inter step 15/15: generate inform6 -> auto.inf
|
||||
7.9% in inter step 2/15: link
|
||||
1.5% in inter step 11/15: make-identifiers-unique
|
||||
0.4% in inter step 12/15: reconcile-verbs
|
||||
0.2% in inter step 10/15: detect-indirect-calls
|
||||
0.2% in inter step 14/15: eliminate-redundant-operations
|
||||
0.2% in inter step 6/15: assimilate
|
||||
0.2% in inter step 8/15: resolve-external-symbols
|
||||
0.2% in inter step 9/15: inspect-plugs
|
||||
0.1% in inter step 10/15: detect-indirect-calls
|
||||
0.1% in inter step 13/15: eliminate-redundant-labels
|
||||
0.1% in inter step 4/15: parse-linked-matter
|
||||
0.1% in inter step 5/15: resolve-conditional-compilation
|
||||
2.5% not specifically accounted for
|
||||
1.6% in supervisor
|
||||
2.4% not specifically accounted for
|
||||
1.7% in supervisor
|
||||
0.3% not specifically accounted for
|
||||
|
|
|
@ -110,12 +110,15 @@ the switch |-rng| to the above command-line call.
|
|||
Inter code, which have to be merged in. This process is carried out by a copy
|
||||
of the Inter tool inside |inform7|, and the choice of which kits are needed is
|
||||
managed by Inbuild. The |inform7| command line allows this process to be
|
||||
customised. In particular, |-kit BasicInformKit| will cause Inform to compile
|
||||
customised. In particular, |-basic| will cause Inform to compile
|
||||
a "basic" project with no command parser or world model, and in general no
|
||||
interactive fiction-related infrastructure: it converts Inform into a
|
||||
general-purpose programming language. For examples of Basic Inform programs,
|
||||
see the test cases in |inform7/Tests/Test Basic|.
|
||||
|
||||
|-basic| is actually just an abbreviation for |-kit BasicInformKit|, and
|
||||
other kits can also be included. See //inbuild// for more on kits.
|
||||
|
||||
The three commands |-pipeline|, |-pipeline-file| and |-variable| control
|
||||
the way Inter performs code-generation on the output from |inform7|. Again,
|
||||
these needn't be used in normal circumstances, because the defaults are fine.
|
||||
|
|
|
@ -15,4 +15,4 @@ inform7/Tests/Test\ Externals/_Build/XText-I.o: inform7/Tests/Test\ Externals/_B
|
|||
clang -g -std=c99 -c -o inform7/Tests/Test\ Externals/_Build/XText-I.o inform7/Tests/Test\ Externals/_Build/XText-I.c -Wno-parentheses-equality -D DEBUG -D I7_NO_MAIN -I inform7/Internal/Miscellany
|
||||
|
||||
inform7/Tests/Test\ Externals/_Build/XText-I.c: inform7/Tests/Test\ Externals/_Source/XText.i7
|
||||
'inform7/Tangled/inform7' '-kit' 'BasicInformKit' '-format=C/32d' '-no-progress' '-fixtime' '-rng' '-sigils' '-log' 'nothing' '-external' 'inform7/Tests' '-transient' '/Users/gnelson/Natural Inform/intest/Workspace/T0/Transient' '-no-index' '-internal' 'inform7/Internal' '-project' '/Users/gnelson/Natural Inform/intest/Workspace/T0/Example.inform' '-variable' '*tout=inform7/Tests/Test Externals/_Textual/XText.intert' '-variable' '*out=inform7/Tests/Test Externals/_Build/XText-I.c' '-pipeline' 'test_any'
|
||||
'inform7/Tangled/inform7' '-basic' '-format=C' '-no-progress' '-log' 'nothing' '-external' 'inform7/Tests' '-transient' '../intest/Workspace/T0/Transient' '-no-index' '-internal' 'inform7/Internal' '-project' '../intest/Workspace/T0/Example.inform' '-variable' '*tout=inform7/Tests/Test Externals/_Textual/XText.intert' '-variable' '*out=inform7/Tests/Test Externals/_Build/XText-I.c' '-pipeline' 'test_any'
|
||||
|
|
Loading…
Reference in a new issue