aboutsummaryrefslogtreecommitdiff
path: root/src/postamble.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-05-03 16:40:18 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-05-04 19:53:45 -0700
commiteadd89b7c87921ea3274e76017046b8bf884b336 (patch)
tree8c77b931a6323823542f33836ba765f46d6ff97c /src/postamble.js
parent0560adda8a6c0259478a54e5b514ceaafe8fc10c (diff)
make memory management sane: 0 is null, then static including globals, then stack, then dynamic/sbrk. deprecate shared libs (BUILD_AS_SHARED_LIB)
Diffstat (limited to 'src/postamble.js')
-rw-r--r--src/postamble.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/postamble.js b/src/postamble.js
index 8dd01589..12471a19 100644
--- a/src/postamble.js
+++ b/src/postamble.js
@@ -15,14 +15,14 @@ Module.callMain = function callMain(args) {
argv.push(0);
}
}
- var argv = [allocate(intArrayFromString("/bin/this.program"), 'i8', ALLOC_STATIC) ];
+ var argv = [allocate(intArrayFromString("/bin/this.program"), 'i8', ALLOC_NORMAL) ];
pad();
for (var i = 0; i < argc-1; i = i + 1) {
- argv.push(allocate(intArrayFromString(args[i]), 'i8', ALLOC_STATIC));
+ argv.push(allocate(intArrayFromString(args[i]), 'i8', ALLOC_NORMAL));
pad();
}
argv.push(0);
- argv = allocate(argv, 'i32', ALLOC_STATIC);
+ argv = allocate(argv, 'i32', ALLOC_NORMAL);
#if BENCHMARK
var start = Date.now();