; CPU description file generator for CGEN cpu documentation
2
; This is invoked to build: $arch.html.
3
; Copyright (C) 2003, 2009 Doug Evans
4
; This file is part of CGEN.
5
;
6
; This is a standalone script, we don't load anything until we parse the
7
; -s argument (keeps reliance off of environment variables, etc.).
8
9
"/read.scm""/desc.scm""/desc-cpu.scm""/html.scm""-H""file""generate $arch.html in <file>""-I""file""generate $arch-insn.html in <file>""-N""file""specify name of insn.html file"; Kept global so it's available to the other .scm files.
10
11
; We can't process any other args until we find the cgen source dir.
12
; The result is srcdir.
13
; We assume "-s" isn't the argument to another option. Unwise, yes.
14
; Alternatives are to require it to be the first argument or at least preceed
15
; any option with a "-s" argument, or to put knowledge of the common argument
16
; set and common argument parsing code in every top level file.
17
18
; Find and set srcdir, then load all Scheme code.
19
; Drop the first argument, it is the script name (i.e. argv[0]).