OpenCores
URL https://opencores.org/ocsvn/scarts/scarts/trunk

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-binutils/] [binutils-2.19.1/] [cgen/] [cgen-opc.scm] - Blame information for rev 6

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 6 jlechner
; CPU description file generator for the GNU Binutils.
2
; This is invoked to build: $arch-desc.[ch], $arch-opinst.c,
3
; $arch-opc.h, $arch-opc.c, $arch-asm.in, $arch-dis.in, and $arch-ibld.[ch].
4
; Copyright (C) 2000, 2009 Red Hat, Inc.
5
; This file is part of CGEN.
6
;
7
; This is a standalone script, we don't load anything until we parse the
8
; -s argument (keeps reliance off of environment variables, etc.).
9
 
10
"/read.scm""/desc.scm""/desc-cpu.scm""/opcodes.scm""/opc-asmdis.scm""/opc-ibld.scm""/opc-itab.scm""/opc-opinst.scm""-OPC""file""specify path to .opc file""-H""file""generate $arch-desc.h in <file>""-C""file""generate $arch-desc.c in <file>""-O""file""generate $arch-opc.h in <file>""-P""file""generate $arch-opc.c in <file>""-Q""file""generate $arch-opinst.c in <file>""-B""file""generate $arch-ibld.h in <file>""-L""file""generate $arch-ibld.in in <file>""-A""file""generate $arch-asm.in in <file>""-D""file""generate $arch-dis.in in <file>"; (-R "file" "generate $cpu-reloc.h") ; FIXME: wip (rename to -abi.h?)
11
 
12
; ((-R) (file-write *arg* cgen-reloc.c))
13
; ((-S) (file-write *arg* cgen-bfdcpu.c))
14
; Kept global so it's available to the other .scm files.
15
"."; Scan argv for -s srcdir.
16
; We can't process any other args until we find the cgen source dir.
17
; The result is srcdir.
18
; We assume "-s" isn't the argument to another option.  Unwise, yes.
19
; Alternatives are to require it to be the first argument or at least preceed
20
; any option with a "-s" argument, or to put knowledge of the common argument
21
; set and common argument parsing code in every top level file.
22
 
23
; Find and set srcdir, then load all Scheme code.
24
; Drop the first argument, it is the script name (i.e. argv[0]).
25
"opcodes"

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.