Script Programming Language/Using SC: Difference between revisions
No edit summary |
|||
| Line 60: | Line 60: | ||
==<br /> Also See == | ==<br /> Also See == | ||
* [[Compiling]] | * [[:Category:Compiling|Compiling]] | ||
* [[:Category:SCI Documentation|SCI Documentation]] | * [[:Category:SCI Documentation|SCI Documentation]] | ||
* [[:Category:Official SCI Documentation|Official SCI Documentation]] | * [[:Category:Official SCI Documentation|Official SCI Documentation]] | ||
| Line 66: | Line 66: | ||
* [[Script Resource (SCI)]] | * [[Script Resource (SCI)]] | ||
* [[SCI Specifications: Chapter 1 - Introduction#SCRIPT|SCRIPT in the SCI Specifications]] | * [[SCI Specifications: Chapter 1 - Introduction#SCRIPT|SCRIPT in the SCI Specifications]] | ||
| | ||
| Line 75: | Line 74: | ||
<span style="float: right">[[Script Programming Language/Index | Next: Index >]]</span> | <span style="float: right">[[Script Programming Language/Index | Next: Index >]]</span> | ||
| | ||
[[Category:References]] | |||
[[Category:SCI References]] | |||
[[Category:Historical Pages]] | |||
[[Category:SCI Historical Pages]] | |||
[[Category:Development]] | |||
[[Category:SCI Development]] | |||
[[Category:Documentation]] | |||
[[Category:SCI Documentation]] | [[Category:SCI Documentation]] | ||
[[Category:Scripting]] | [[Category:Official Documentation]] | ||
[[Category:Official SCI Documentation]] | |||
[[Category:Technical Info]] | |||
[[Category:SCI Technical Info]] | |||
[[Category:Scripting Articles]] | |||
[[Category:SCI Scripting Articles]] | |||
[[Category:Script Resources]] | |||
[[Category:SCI Script Resources]] | |||
[[Category:Official SCI Documentation]] | |||
[[Category:Primitive Procedures]] | |||
[[Category:Compiling]] | [[Category:Compiling]] | ||
Revision as of 17:11, 1 January 2026
The Original SCI Documentation
Using SC
The sc compiler is invoked with the command
sc file_spec [file_spec] [options]
Any number of file specifications may be entered on the command line, and a file specification may include wild-card names.
Options
-l
Generate an assembly language code listing for the file. This is useful when using the built-in debugger of sci, which lists only the assembly language code, not the source. When compiling filename.sc, the list file is named filename.sl
-n
Turns off 'auto-naming' of objects. As described in Script Classes for Adventure Games, each object has a name, or 'print-string' property, which is how to represent the object textually. Unless the property is explicitly set, the compiler will generate the value for this property automatically, using the object's symbol string for the name. The object names, however, take up space in the heap. While they are useful (almost vital) for debugging, if you're running out of heap in a room, it might help to compile with the -n option to leave the names out.
-oout-dir
Set the directory for the output file (script.nnn) to out-dir.
-v
Turns on verbose mode, which prints the number of bytes occupied by various parts of the output file (code, objects, text, etc.).
-z
Turn off optimization. Not a particularly useful option except for those of us who must maintain the compiler.
References
Also See
- Compiling
- SCI Documentation
- Official SCI Documentation
- Scripting Articles
- Script Resource (SCI)
- SCRIPT in the SCI Specifications