Difference between revisions of "SCI Programming Language/Compiling SCI"

From SCI Wiki
Jump to navigationJump to search
(Created page with "Official SCI Documentation<br /> <div align="center"> Chapter: 1 | 2...")
 
 
(17 intermediate revisions by the same user not shown)
Line 3: Line 3:
 
<div align="center">
 
<div align="center">
 
Chapter:  
 
Chapter:  
[[The SCI Programming Language/Introduction|1]] |  
+
[[SCI Programming Language/Introduction|1]] |  
[[The SCI Programming Language/Primitive Procedures|2]] |  
+
[[SCI Programming Language/Primitive Procedures|2]] |  
[[The SCI Programming Language/Arithmetic Primitives|3]] |  
+
[[SCI Programming Language/Primitive_Procedures#Arithmetic_Primitives|3]] |  
[[The SCI Programming Language/Boolean Primitives|4]] |  
+
[[SCI Programming Language/Primitive_Procedures#Boolean_Primitives|4]] |  
[[The SCI Programming Language/Assignment Primitives |5]] |
+
[[SCI Programming Language/Primitive_Procedures#Assignment_Primitives |5]] |  
[[The SCI Programming Language/Data Types and Variables|6]] |  
+
[[SCI Programming Language/Data Types and Variables|6]] |  
[[The SCI Programming Language/Definitions|7]] |  
+
[[SCI Programming Language/Definitions|7]] |  
[[The SCI Programming Language/Control Flow|8]] |  
+
[[SCI Programming Language/Control Flow|8]] |  
[[The SCI Programming Language/Conditionals|9]] |  
+
[[SCI Programming Language/Control Flow#Conditionals|9]] |  
[[The SCI Programming Language/Iteration|10]] |  
+
[[SCI Programming Language/Control Flow#Iteration|10]] |  
[[The SCI Programming Language/Primitive Procedures|11]] |  
+
[[SCI Programming Language/Procedures|11]] |  
[[The SCI Programming Language/Files|12]] |  
+
[[SCI Programming Language/Files|12]] |  
[[The SCI Programming Language/Compiling SCI|13]] |  
+
[[SCI Programming Language/Compiling SCI|13]] |  
[[The SCI Programming Language/Index|Index]]
+
[[SCI Programming Language/Index|Index]]
 
</div><br />
 
</div><br />
  
<div align="center"><span style="font-size: 22pt">x</span><br />
+
<div align="center"><span style="font-size: 22pt">Compiling SCI Code</span><br />
 
''Author: [[Jeff Stephenson]]''</div>
 
''Author: [[Jeff Stephenson]]''</div>
  
 
&nbsp;
 
&nbsp;
 +
 +
==<br /> Compiling SCI Code ==
 +
 +
The SCI compiler is invoked with the command:
 +
 +
<blockquote><code>sc filel [file2] [file3] [options]</code></blockquote>
 +
 +
Any number of file specifications may be entered on the command line, and a file specification may include wild-card names.
 +
 +
===<br /> Options ===
 +
 +
{|
 +
|-
 +
| align="right" valign="top"|-a||width="50"|&nbsp;||Abort compile if the file is already locked.<br />&nbsp;
 +
|-
 +
|align="right" valign="top"|-d||&nbsp;||Include debugging information so that the debugger can display source code.<br />&nbsp;
 +
|-
 +
|align="right" valign="top"|-D<str>||&nbsp;||Create a command line define which has the same result as using the define statement in a source file (except that spaces and some other |characters are not permitted).<br />&nbsp;
 +
|-
 +
|align="right" valign="top"|-g<num>||&nbsp;||Define maximum number of global or local variables. The default is 750.<br />&nbsp;
 +
|-
 +
|align="right" valign="top"|-l||&nbsp;||Generate an assembly language code listing for the file with the original source interspersed. This is useful when using the built-in debugger |of SCI. When compiling filename.sc, the list file is named filename.sl.<br />&nbsp;
 +
|-
 +
|align="right" valign="top"|-n||&nbsp;||Turns off "auto-naming" of objects. As described in the appendix on object-oriented programming, each object has a name property which is used 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. While they are useful (almost vital) for debugging, if you're running out of memory in a room, it might help to compile with the -n option to leave the names out.<br />&nbsp;
 +
|-
 +
|align="right" valign="top"|-O||&nbsp;||Use offset.txt to generate 994.voc.<br />&nbsp;
 +
|-
 +
|align="right" valign="top"|-oout-dir||&nbsp;||Set the directory for the output files to out-dir.<br />&nbsp;
 +
|-
 +
|align="right" valign="top"|-s||&nbsp;||Display a message when a forward referenced selector is used.<br />&nbsp;
 +
|-
 +
|align="right" valign="top"|-v||&nbsp;||Do not lock the class database.<br />&nbsp;
 +
|-
 +
|align="right" valign="top"|-w||&nbsp;||Output words high-byte first (for the Macintosh).<br />&nbsp;
 +
|-
 +
|align="right" valign="top"|-z||&nbsp;||Turn off optimization. Not a particularly useful option except for those of us who must maintain the compiler.<br />&nbsp;
 +
|}
 +
 +
;Notes
 +
<references />
 +
 +
[[SCI Programming Language | Table of Contents]]
 +
 +
<span style="float: left">[[SCI Programming Language/Files| &lt; Previous: Files]]</span>
 +
<span style="float: right">[[SCI Programming Language/Index| Next: Index &gt;]]</span>
 +
 +
&nbsp;
 +
 +
[[Category:SCI Documentation]]
 +
[[Category:SCI32]]
 +
[[Category:Scripting]]

Latest revision as of 23:59, 25 May 2016

Official SCI Documentation

Chapter: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | Index


Compiling SCI Code
Author: Jeff Stephenson

 


Compiling SCI Code

The SCI compiler is invoked with the command:

sc filel [file2] [file3] [options]

Any number of file specifications may be entered on the command line, and a file specification may include wild-card names.


Options

-a   Abort compile if the file is already locked.
 
-d   Include debugging information so that the debugger can display source code.
 
-D<str>   characters are not permitted).
 
-g<num>   Define maximum number of global or local variables. The default is 750.
 
-l   of SCI. When compiling filename.sc, the list file is named filename.sl.
 
-n   Turns off "auto-naming" of objects. As described in the appendix on object-oriented programming, each object has a name property which is used 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. While they are useful (almost vital) for debugging, if you're running out of memory in a room, it might help to compile with the -n option to leave the names out.
 
-O   Use offset.txt to generate 994.voc.
 
-oout-dir   Set the directory for the output files to out-dir.
 
-s   Display a message when a forward referenced selector is used.
 
-v   Do not lock the class database.
 
-w   Output words high-byte first (for the Macintosh).
 
-z   Turn off optimization. Not a particularly useful option except for those of us who must maintain the compiler.
 
Notes


Table of Contents

< Previous: Files Next: Index >