From 850728bc46e0ac00953fda27571564098f29888b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20Matthias=20Sch=C3=A4fer?= Date: Mon, 10 Mar 2014 21:25:05 +0100 Subject: [PATCH] Document suffixes for size command line options. --- doc/manual/start-stop.texinfo | 18 +++++++++++------- src/runtime/runtime.c | 39 +++++++++++++++++++++++---------------- 2 files changed, 34 insertions(+), 23 deletions(-) diff --git a/doc/manual/start-stop.texinfo b/doc/manual/start-stop.texinfo index a4e1e55..b343ce1 100644 --- a/doc/manual/start-stop.texinfo +++ b/doc/manual/start-stop.texinfo @@ -205,13 +205,17 @@ the Lisp core file is a user-created core file, it may run a nonstandard toplevel which does not recognize the standard toplevel options. -@item --dynamic-space-size @var{megabytes} -Size of the dynamic space reserved on startup in megabytes. Default -value is platform dependent. - -@item --control-stack-size @var{megabytes} -Size of control stack reserved for each thread in megabytes. Default -value is 2. +@item --dynamic-space-size @var{size} +Size of the dynamic space reserved on startup, by default in megabytes. +An optional suffix can be used to indicate a specific unit: KB or KIB +for kilobytes, MB or MIB for megabytes, and GB or GIB for gigabytes. +Default value is platform dependent. + +@item --control-stack-size @var{size} +Size of control stack reserved for each thread, by default in megabytes. +An optional suffix can be used to indicate a specific unit: KB or KIB +for kilobytes, MB or MIB for megabytes, and GB or GIB for gigabytes. +Default value is 2. @item --noinform Suppress the printing of any banner or other informational message at diff --git a/src/runtime/runtime.c b/src/runtime/runtime.c index e49d7d1..e26e7c0 100644 --- a/src/runtime/runtime.c +++ b/src/runtime/runtime.c @@ -171,25 +171,32 @@ print_help() puts( "Usage: sbcl [runtime-options] [toplevel-options] [user-options]\n\ Common runtime options:\n\ - --help Print this message and exit.\n\ - --version Print version information and exit.\n\ - --core Use the specified core file instead of the default.\n\ - --dynamic-space-size Size of reserved dynamic space in megabytes.\n\ - --control-stack-size Size of reserved control stack in megabytes.\n\ + --help Print this message and exit.\n\ + --version Print version information and exit.\n\ + --core Use the specified core file instead of the\n\ + default.\n\ + --dynamic-space-size Size of reserved dynamic space, by default in\n\ + megabytes. Accepts an optional suffix of KB or KIB\n\ + for kilobytes, MB or MIB for megabytes, and GB or\n\ + GIB for gigabytes.\n\ + --control-stack-size Size of reserved control stack, by default in\n\ + megabytes. Accepts an optional suffix of KB or KIB\n\ + for kilobytes, MB or MIB for megabytes, and GB or\n\ + GIB for gigabytes.\n\ \n\ Common toplevel options:\n\ - --sysinit System-wide init-file to use instead of default.\n\ - --userinit Per-user init-file to use instead of default.\n\ - --no-sysinit Inhibit processing of any system-wide init-file.\n\ - --no-userinit Inhibit processing of any per-user init-file.\n\ - --disable-debugger Invoke sb-ext:disable-debugger.\n\ - --noprint Run a Read-Eval Loop without printing results.\n\ - --script [] Skip #! line, disable debugger, avoid verbosity.\n\ - --quit Exit with code 0 after option processing.\n\ - --non-interactive Sets both --quit and --disable-debugger.\n\ + --sysinit System-wide init-file to use instead of default.\n\ + --userinit Per-user init-file to use instead of default.\n\ + --no-sysinit Inhibit processing of any system-wide init-file.\n\ + --no-userinit Inhibit processing of any per-user init-file.\n\ + --disable-debugger Invoke sb-ext:disable-debugger.\n\ + --noprint Run a Read-Eval Loop without printing results.\n\ + --script [] Skip #! line, disable debugger, avoid verbosity.\n\ + --quit Exit with code 0 after option processing.\n\ + --non-interactive Sets both --quit and --disable-debugger.\n\ Common toplevel options that are processed in order:\n\ - --eval
Form to eval when processing this option.\n\ - --load File to load when processing this option.\n\ + --eval Form to eval when processing this option.\n\ + --load File to load when processing this option.\n\ \n\ User options are not processed by SBCL. All runtime options must\n\ appear before toplevel options, and all toplevel options must\n\ -- 1.7.10.4