summary refs log tree commit diff stats
path: root/doc/koch.rst
diff options
context:
space:
mode:
authorquantimnot <54247259+quantimnot@users.noreply.github.com>2022-06-10 14:40:08 -0400
committerGitHub <noreply@github.com>2022-06-10 20:40:08 +0200
commit6f4bacff67e2e219ef914e24d9f9aaf34a6d1eb1 (patch)
treea77b7708c6405f672dc7d105bc60cd0bf0f185a5 /doc/koch.rst
parent1e5dd9022b0d86d63d616431a0f9959ca4c10f40 (diff)
downloadNim-6f4bacff67e2e219ef914e24d9f9aaf34a6d1eb1.tar.gz
Extend and document compiler debugging utilities (#19841)
* Add two debugutils procs that native debuggers can break on use to
  execute commands when code of interest is being compiled.
* Add GDB and LLDB programs to disable and enable breakpoints and
  watchpoints when code of interest is being compiled.
* Extend the `intern.rst` docs regarding debugging the compiler.

Co-authored-by: quantimnot <quantimnot@users.noreply.github.com>
Diffstat (limited to 'doc/koch.rst')
-rw-r--r--doc/koch.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/koch.rst b/doc/koch.rst
index b8d85dff4..91dd5d570 100644
--- a/doc/koch.rst
+++ b/doc/koch.rst
@@ -38,6 +38,9 @@ options:
   unless you are debugging the compiler.
 -d:nimUseLinenoise     Use the linenoise library for interactive mode
                        (not needed on Windows).
+-d:leanCompiler        Produce a compiler without JS codegen or
+                       documentation generator in order to use less RAM
+                       for bootstrapping.
 
 After compilation is finished you will hopefully end up with the nim
 compiler in the `bin` directory. You can add Nim's `bin` directory to
olor: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
package main

import "fmt"

func printUsage() {
	fmt.Println("Usage: cetus <command> <service> [<flags>]")
	fmt.Println("\nCommands: ")
	fmt.Println(" set     Set the background")
	fmt.Println(" fetch   Fetch the response only")
	fmt.Println(" help    Print help")
	fmt.Println(" version Print Cetus version")
	fmt.Println("\nServices: ")
	fmt.Println(" apod   NASA Astronomy Picture of the Day")
	fmt.Println(" bpod   Bing Photo of the Day")
}