URL
https://opencores.org/ocsvn/scarts/scarts/trunk
Subversion Repositories scarts
[/] [scarts/] [trunk/] [toolchain/] [scarts-binutils/] [binutils-2.19.1/] [cgen/] [cgen-sim.scm] - Rev 7
Go to most recent revision | Compare with Previous | Blame | View Log
; Simulator generator entry point. ; This is invoked to build: arch.h, cpu-<cpu>.h, memops.h, semops.h, decode.h, ; decode.c, defs.h, extract.c, semantics.c, ops.c, model.c, mainloop.in. ; ; memops.h, semops.h, ops.c, mainloop.in are either deprecated or wip. ; ; Copyright (C) 2000, 2009 Red Hat, Inc. ; This file is part of CGEN. ; ; This is a standalone script, we don't load anything until we parse the ; -s argument (keeps reliance off of environment variables, etc.). ; Load the various support routines. "/read.scm""/utils-sim.scm""/sim.scm""/sim-arch.scm""/sim-cpu.scm""/sim-model.scm""/sim-decode.scm""-A""file""generate arch.h in <file>""-B""file""generate arch.c in <file>""-C""file""generate cpu-<cpu>.h in <file>""-U""file""generate cpu-<cpu>.c in <file>""-N""file""generate cpu-all.h in <file>""-F""file""generate memops.h in <file>""-G""file""generate defs.h in <file>""-P""file""generate semops.h in <file>""-T""file""generate decode.h in <file>""-D""file""generate decode.c in <file>""-E""file""generate extract.c in <file>""-R""file""generate read.c in <file>""-W""file""generate write.c in <file>""-S""file""generate semantics.c in <file>""-X""file""generate sem-switch.c in <file>""-O""file""generate ops.c in <file>""-M""file""generate model.c in <file>""-L""file""generate mainloop.in in <file>"; Kept global so it's available to the other .scm files. "."; Scan argv for -s srcdir. ; We can't process any other args until we find the cgen source dir. ; The result is srcdir. ; We assume "-s" isn't the argument to another option. Unwise, yes. ; Alternatives are to require it to be the first argument or at least preceed ; any option with a "-s" argument, or to put knowledge of the common argument ; set and common argument parsing code in every top level file. "`-s srcdir' not present, can't load cgen""-s""missing srcdir arg to `-s'"; Main routine, parses options and calls generators. ; Find and set srcdir, then load all Scheme code. ; Drop the first argument, it is the script name (i.e. argv[0]). "sim"
Go to most recent revision | Compare with Previous | Blame | View Log