URL
https://opencores.org/ocsvn/scarts/scarts/trunk
Subversion Repositories scarts
[/] [scarts/] [trunk/] [toolchain/] [scarts-binutils/] [binutils-2.19.1/] [cgen/] [dev.scm] - Rev 6
Compare with Previous | Blame | View Log
; CGEN Debugging support. ; Copyright (C) 2000, 2009 Red Hat, Inc. ; This file is part of CGEN. ; See file COPYING.CGEN for details. ; This file is loaded in during an interactive guile session to ; develop and debug CGEN. The user visible procs are: ; ; (use-c) ; (load-opc) ; (load-sim) ; (load-sid) ; (load-testsuite) ; (cload #:arch path-to-cpu-file #:machs "mach-list" #:isas "isa-list" ; #:options "options" #:trace "trace-options") ; First load guile.scm to coerce guile into something we've been using. ; Guile is always in flux. "guile.scm""."; Utility to enable/disable compiled-in C code. ; Also defined in read.scm, but we need it earlier. ; Supply the path name and suffic for the .cpu file and delete the analyzer ; arg from cpu-load to lessen the typing. "all""all"""""; Doesn't check if (cadr args) exists or if #:arch was specified, but ; this is a debugging tool! ; done "unknown option:""application not loaded""unknown application:"; Use the debugging evaluator. ; Tell maybe-load to always load the file. "read""desc""desc-cpu""html"; ??? Necessary for the following case, dunno why. ; bash$ guile -l dev.scm ; guile> (load-doc) ; guile> (cload #:arch "./cpu/m32r.cpu") "read""desc""desc-cpu""opcodes""opc-asmdis""opc-ibld""opc-itab""opc-opinst""gas-test""read""utils-sim""sid""sid-cpu""sid-model""sid-decode""read""desc""desc-cpu""utils-sim""sim""sim-arch""sim-cpu""sim-model""sim-decode""sim-test""read""desc""desc-cpu""testsuite.scm"" First enable compiled in C code if desired. (use-c) Then choose the application via one of: (load-doc) (load-opc) (load-gtest) (load-sim) (load-stest) (load-testsuite) ""(load-sid)\n""\ Then load the .cpu file with: (cload #:arch \"path-to-cpu-file\" #:machs \"keep-mach\" #:isas \"keep-isa\" #:options \"options\" #:trace \"trace-options\") Only the #:arch parameter is mandatory, the rest are optional. keep-mach: comma separated list of machs to keep or `all' keep-isa: comma separated list of isas to keep or `all' #:options specifies a list of application-specific options doc options: [none yet] opcode options: [none yet] Remember to call (set-opc-file-path! \"/path/to/cpu.opc\"). gas test options: [none yet] \n""\ sim options: with-scache with-profile=fn sim test options: [none yet] \n""\ sid options: [wip] \n""\ trace-options: (comma-separated list of options) commands - trace cgen command invocation pmacros - trace pmacro expansion all - trace everything \n"; If ~/.cgenrc exists, load it. "HOME""/.cgenrc"