a question about doing an opcodes port

龚 源泉 source_kong@hotmail.com
Mon Aug 26 00:21:00 GMT 2002


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/



More information about the Cgen mailing list