1.4.0 • Published 8 years ago
smcomp v1.4.0
smcomp
Tested and working on windows,mac and linux and it is working. on linux you need the 32-bit libraries.
Install 32-bit libraries on ubuntu
sudo apt-get install libstdc++6:i386
Installation
npm install smcomp --save
Usage
var smcomp = require('smcomp');
var options = {
'-v' : 2,
'-E' : null
};
//The options parameter is optional see the "Options" description in this readme
smcomp.compile('inputfile.sp', 'outputfile.smx', options, function(err, stdout){
if(err) { return console.error(stdout); }
//Success
});
Options
-A<num> alignment in bytes of the data segment and the stack
-a output assembler code
-c<name> codepage name or number; e.g. 1252 for Windows Latin-1
-e<name> set name of error file (quiet compile)
-h show included file paths
-i<name> path for include files (default= smcomp/comp/include)
-l create list file (preprocess only)
-o<name> set base name of (P-code) output file
-O<num> optimization level (default=-O2)
0 no optimization
2 full optimizations
-p<name> set name of "prefix" file
-r[name] write cross reference report to console or to specified file
-S<num> stack/heap size in cells (default=4096)
-s<num> skip lines from the input file
-t<num> TAB indent size (in character positions, default=8)
-v<num> verbosity level; 0=quiet, 1=normal, 2=verbose (default=2)
-w<num> disable a specific warning by its number
-E treat warnings as errors
-X<num> abstract machine size limit in bytes
-XD<num> abstract machine data/stack size limit in bytes
-\ use '\' for escape characters
-^ use '^' for escape characters
-;[+/-] require a semicolon to end each statement (default=-)
sym=val define constant "sym" with value "val"
sym= define constant "sym" with value 0
Options example
Options without values should be defined as null
var options = {
'-v' : 2,
'-E' : null <--- set to null
};
1.4.0
8 years ago
1.3.6
8 years ago
1.3.5
8 years ago
1.3.4
8 years ago
1.3.3
8 years ago
1.3.2
8 years ago
1.3.1
8 years ago
1.3.0
8 years ago
1.2.15
8 years ago
1.2.14
8 years ago
1.2.13
8 years ago
1.2.12
8 years ago
1.2.11
8 years ago
1.2.10
8 years ago
1.2.9
8 years ago
1.2.8
8 years ago
1.2.7
8 years ago
1.2.6
8 years ago
1.2.5
8 years ago
1.2.4
8 years ago
1.2.3
8 years ago
1.2.2
8 years ago
1.2.1
8 years ago
1.2.0
8 years ago
1.1.5
8 years ago
1.1.4
8 years ago
1.1.3
8 years ago
1.1.2
8 years ago
1.1.1
8 years ago
1.1.0
8 years ago
1.0.5
8 years ago
1.0.4
8 years ago
1.0.3
8 years ago
1.0.2
8 years ago
1.0.1
8 years ago
1.0.0
8 years ago