X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=rts%2FRtsFlags.c;h=4c1f739e894615e8f62948ece354397c18cd31ef;hb=d4050431de1adddedb240e497f77f89301f77070;hp=a2d699daf7a27f2f80178c48055fdb6725593de1;hpb=8bac478832e0cf9fa7ad1cfc81c08b0b9f13938e;p=ghc-hetmet.git diff --git a/rts/RtsFlags.c b/rts/RtsFlags.c index a2d699d..4c1f739 100644 --- a/rts/RtsFlags.c +++ b/rts/RtsFlags.c @@ -203,8 +203,8 @@ void initRtsFlagsDefaults(void) RtsFlags.ProfFlags.bioSelector = NULL; #endif - RtsFlags.MiscFlags.tickInterval = 50; /* In milliseconds */ - RtsFlags.ConcFlags.ctxtSwitchTime = 50; /* In milliseconds */ + RtsFlags.MiscFlags.tickInterval = 20; /* In milliseconds */ + RtsFlags.ConcFlags.ctxtSwitchTime = 20; /* In milliseconds */ RtsFlags.MiscFlags.install_signal_handlers = rtsTrue; @@ -682,6 +682,22 @@ error = rtsTrue; &rts_argv[arg][2])) { RtsFlags.MiscFlags.install_signal_handlers = rtsFalse; } + else if (strequal("info", + &rts_argv[arg][2])) { + char *s; + printf("RTS info:\n"); + printf("RTS from GHC " ProjectVersion "\n"); + printf("RTS way " RtsWay "\n"); + printf("Host platform " HostPlatform "\n"); + printf("Build platform " BuildPlatform "\n"); + printf("Target platform " TargetPlatform "\n"); + s = strcmp(GhcUnregisterised, "YES") == 0 ? "un" : ""; + printf("Compiler is %sregisterised\n", s); + s = strcmp(GhcEnableTablesNextToCode, "YES") == 0 + ? "" : "not "; + printf("Tables are %snext to code\n", s); + exit(0); + } else { errorBelch("unknown RTS option: %s",rts_argv[arg]); error = rtsTrue;