public inbox for cgen@sourceware.org
 help / color / mirror / Atom feed
* [Q] how can i run cgen interactively?
@ 2005-10-24  6:10 ml
  0 siblings, 0 replies; 2+ messages in thread
From: ml @ 2005-10-24  6:10 UTC (permalink / raw)
  To: cgen


hi, i'm a student of graduated school of Univ. in japan.
i'm trying to port gnu tool-chain to our new processor with cgen.
but i cannot run cgen interactively. how can i run it?
i'm trying to port Binutils-2.16.1 and GDB-6.2.

my environment is 
  OS:    Debian GNU/Linux 3.1 sarge (stable)
  CGEN:  cgen-20051015
  Guile: guile-1.6.7

i run cgen as followed. now i running cgen with m32r.

$ tar xjf cgen-20051015.tar.bz2 
$ cd cgen-20051015/cgen/
$ guile
guile> (load "dev.scm")
guile> (load-opc)
guile> (cload #:arch "m32r")
guile> (cgen-desc.h)

Backtrace:
./desc-cpu.scm:1002:32: In expression (opc-file-path):
./desc-cpu.scm:1002:32: Unbound variable: opc-file-path
ABORT: (unbound-variable)

could you please tell me how to run cgen interactively.
i found that opc-file-path is defined in cgen-opc.scm, so i tried to load it.
but i cannot load it.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Q] how can i run cgen interactively?
@ 2005-10-24  6:01 blue
  0 siblings, 0 replies; 2+ messages in thread
From: blue @ 2005-10-24  6:01 UTC (permalink / raw)
  To: cgen


hi, i'm a student of graduated school of Univ. in japan.
i'm trying to port gnu tool-chain to our new processor with cgen.
but i cannot run cgen interactively. how can i run it?
i'm trying to port Binutils-2.16.1 and GDB-6.2.

my environment is 
  OS:    Debian GNU/Linux 3.1 sarge (stable)
  CGEN:  cgen-20051015
  Guile: guile-1.6

i run cgen as following. now i run with m32r.

$ tar xjf cgen-20051015.tar.bz2 
$ cd cgen-20051015/cgen/
$ guile
guile> (load "dev.scm")
	...<snipped>
guile> (load-opc)
	...<snipped>
guile> (cload #:arch "m32r")
	...<snipped>
guile> (cgen-desc.h)
	...<snipped> and ...

extern const CGEN_HW_ENTRY @arch@_cgen_hw_table[];


Backtrace:
In ./desc-cpu.scm:
1002:  0* (opc-file-path)
1002:  1  [gen-extra-cpu.h ...
In ./utils.scm:
 414:  2* [#<procedure #f ()>]
 414:  3  [-string-write #(print-state 0) ...
 412:  4* (cond ((string? expr) (display expr)) ((symbol? expr) (display expr)) ...)
 403:  5* [-string-write #(print-state 0) #<procedure #f ()>]
In unknown file:
   ?:  6* [#<procedure #f (elm)> #<procedure #f ()>]
In ./utils.scm:
 403:  7* [for-each #<procedure #f #> #]
 401:  8  (let ((pstate (make-print-state))) (set! -current-print-state pstate) ...)
In ./desc-cpu.scm:
 966:  9  [string-write "/* CPU data header for @arch@.  THIS FILE IS MACHINE GENERA$
In standard input:
   4: 10* [cgen-desc.h]

./desc-cpu.scm:1002:32: In expression (opc-file-path):
./desc-cpu.scm:1002:32: Unbound variable: opc-file-path
ABORT: (unbound-variable)
guile>

could you please tell me how to run cgen interactively.
i found that opc-file-path is defined in cgen-opc.scm, so i tried to load it.
but i cannot load it.

-- 
blue

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-10-24  6:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-10-24  6:10 [Q] how can i run cgen interactively? ml
  -- strict thread matches above, loose matches on Subject: below --
2005-10-24  6:01 blue

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).