This is the mail archive of the
cgen@sourceware.org
mailing list for the CGEN project.
Re: problem with opcodes porting instructions
On Mon, Jan 22, 2007 at 03:38:11PM -0500, Frank Ch. Eigler wrote:
> Joern Rennecke <joernr@arc.com> writes:
>
> > I've tried to follow the instructions in porting.texi, but I always end
> > up with an error:
> > ./desc-cpu.scm:1005:32: Unbound variable: opc-file-path
>
> According to cgen/cgen-opc.scm, the underlying variable gets set
> when the "-opc FILE.opc" argument is given to cgen.
That is no use, since the function needs to be defined.
I have cobbled together now the following for my .cgenrc, which appears to
basically work. However, it appears to be missing debugging output, which
makes it harder to pinpoint problems while you are writing your description.
(define -program-arguments program-arguments)
(define (program-arguments) -program-arguments)
(define (arc-opc)
(set! -program-arguments '("/scratch/srcw/src/cgen/cgen-opc.scm" "-s" "/scratch/srcw/src/cgen" "-a" "cpu/arc.cpu" "-OPC" "cpu/arc.opc"))
(load "cgen-opc.scm")
)