diff options
author | Araq <rumpf_a@web.de> | 2011-12-30 11:03:01 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2011-12-30 11:03:01 +0100 |
commit | 73919e3082e3bd7905f9a11a33fc54d641a10ac7 (patch) | |
tree | b2b1b3185576aba3e45a84dad49b422cd7c839db /compiler/nimrod.nim | |
parent | a26433b6ece813d8e14efe4f65b4be3a893c2116 (diff) | |
download | Nim-73919e3082e3bd7905f9a11a33fc54d641a10ac7.tar.gz |
GC stack scanning cares about interior pointers
Diffstat (limited to 'compiler/nimrod.nim')
-rwxr-xr-x | compiler/nimrod.nim | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/compiler/nimrod.nim b/compiler/nimrod.nim index 24dbc0617..a6918ce63 100755 --- a/compiler/nimrod.nim +++ b/compiler/nimrod.nim @@ -61,9 +61,9 @@ proc prependCurDir(f: string): string = else: result = f -proc HandleCmdLine() = +proc HandleCmdLine() = var start = epochTime() - if paramCount() == 0: + if paramCount() == 0: writeCommandLineUsage() else: # Process command line arguments: @@ -85,13 +85,15 @@ proc HandleCmdLine() = ProcessCmdLine(passCmd2) MainCommand() if gVerbosity >= 2: echo(GC_getStatistics()) + #echo(GC_getStatistics()) if msgs.gErrorCounter == 0: when hasTinyCBackend: if gCmd == cmdRun: tccgen.run() - if gCmd notin {cmdInterpret, cmdRun}: - rawMessage(hintSuccessX, [$gLinesCompiled, - formatFloat(epochTime() - start, ffDecimal, 3)]) + if gCmd notin {cmdInterpret, cmdRun}: + rawMessage(hintSuccessX, [$gLinesCompiled, + formatFloat(epochTime() - start, ffDecimal, 3), + formatSize(getTotalMem())]) if optRun in gGlobalOptions: var ex = quoteIfContainsWhite( changeFileExt(gProjectFull, "").prependCurDir) |