diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-11-20 14:14:50 +0100 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-11-20 14:14:50 +0100 |
commit | 4a9e85017527bbe8f0f3bd47ed5b2b61d410ac44 (patch) | |
tree | 0f2d3e4f6874bea9f17b9bc14915f3d365bd13d8 | |
parent | 9fb4f9c30b4cdbb971f1e189b0eb89045e553184 (diff) |
comment
-rw-r--r-- | src/analyzer.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/analyzer.js b/src/analyzer.js index 5f62bfd1..014579f4 100644 --- a/src/analyzer.js +++ b/src/analyzer.js @@ -690,6 +690,7 @@ function analyzer(data, sidePass) { var subType = check[2]; addTypeInternal(subType, data); // needed for anonymous structure definitions (see below) + // Huge structural types are represented very inefficiently, both here and in generated JS. Best to avoid them - for example static char x[10*1024*1024]; is bad, while static char *x = malloc(10*1024*1024) is fine. if (num >= 10*1024*1024) warnOnce('warning: very large fixed-size structural type: ' + type + ' - can you reduce it? (compilation may be slow)'); Types.types[nonPointing] = { name_: nonPointing, |