From: "龚 源泉" <source_kong@hotmail.com>
To: cgen@sources.redhat.com
Subject: a question about doing an opcodes port
Date: Mon, 26 Aug 2002 00:21:00 -0000 [thread overview]
Message-ID: <F6473lhRxRoJPaxJNuH0001ebee@hotmail.com> (raw)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=gb2312; format=flowed, Size: 1548 bytes --]
Dear Mr Ben,
When I was doing an opcodes port using CGEN following the
manual:(http://sources.redhat.com/cgen/docs-1.0/cgen_5.html#SEC163)
1.Run guile.
2.(load "dev.scm"). This loads in a set of interactive development
routines.
3.(load-opc). Load the opcodes support.
4.Edit your `cpu/<arch>.cpu' and `cpu/<arch>.opc' files.
The `.cpu' file is the main description file.
The `.opc' file provides additional C support code.
5.(cload #:arch "cpu/<arch>")
6.Run each of:
(cgen-desc.h)
(cgen-desc.c)
(cgen-opc.h)
(cgen-opc.c)
(cgen-ibld.in)
(cgen-asm.in)
(cgen-dis.in)
(cgen-opinst.c) -- [optional]
7.Repeat steps 4, 5 and 6 until the output looks reasonable.
8.Add dependencies to `opcodes/Makefile.am' to generate the eight opcodes
files (use the M32R port as an example).
9.Run make dep from the `opcodes' build directory.
10.Run make all-opcodes from the top level build directory
I had the following questions:
What is the directory "opcodes" in step 8, does it refer to the opcodes
directory in the binutils(I have downloaded binutils-2.12 from the gnu
ftp)package?
What does "Add dependencies to "opcodes/Makefile.am" mean?
What are the eight opcodes files?
In what directory should I run the make instruction in step 9 and 10?
By the way, could you please give me an explanation about port?
Thanks for your help!
_________________________________________________________________
ÓëÁª»úµÄÅóÓѽøÐн»Á÷£¬ÇëʹÓà MSN Messenger:
http://messenger.microsoft.com/cn/
next reply other threads:[~2002-08-26 7:21 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-08-26 0:21 龚 源泉 [this message]
2002-08-26 6:58 ` Ben Elliston
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=F6473lhRxRoJPaxJNuH0001ebee@hotmail.com \
--to=source_kong@hotmail.com \
--cc=cgen@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).