Initial new rt integration

This commit is contained in:
dcode
2019-05-12 13:50:28 +02:00
parent dd2bdd0383
commit ba1a0c2369
52 changed files with 1066 additions and 2985 deletions

View File

@ -392,11 +392,11 @@ exports.main = function main(argv, options, callback) {
// Include runtime template
{
let templateName = String(args.runtime);
let templateText = exports.libraryFiles["runtime/" + templateName];
let templateText = exports.libraryFiles["rt/index-" + templateName];
if (templateText == null) {
templateText = readFile(templateName + ".ts", baseDir);
if (templateText == null) {
return callback(Error("Runtime template '" + templateName + " not found."));
return callback(Error("Runtime template '" + templateName + "' not found."));
}
}
stats.parseCount++;

View File

@ -83,15 +83,14 @@
},
"runtime": {
"description": [
"Specifies the runtime template to include in the program.",
"Specifies the runtime implementation to include in the program.",
"",
" none No allocator/GC or compose your own. [default]",
" trace TLSF memory allocator and ITCM garbage collector.",
" arena Just the arena memory allocator. No free/GC.",
" full Default runtime based on TLSF and reference counting.",
" stub Minimal stub implementation without free/GC support.",
""
],
"type": "s",
"default": "none"
"default": "full"
},
"debug": {
"description": "Enables debug information in emitted binaries.",