This is the mail archive of the
cgen@sources.redhat.com
mailing list for the CGEN project.
Doing a GAS port
- From: "c.c.chen" <u87011 at webmail dot ice dot ntnu dot edu dot tw>
- To: cgen at sources dot redhat dot com
- Date: Sat, 13 Nov 2004 15:01:38 +0800
- Subject: Doing a GAS port
Hi,
I wanted to port the GAS to a new target
I know that basically I will need to create this file:
--GAS target dependent
gas/config/tc-CPU.[ch]
--opcode library (CGEN done this part)
opcodes/CPU-dis.c
opcodes/FOO-opc.c
--BFD library
bfd/{elf32|coff}-CPU.c
bfd/cpu-CPU.c
...
(Replace CPU with the name of my target chip)
I want to ask a quistion?
why CGEN doesn't do this part which generate tc-CPU.[ch] files?
(because cpu description information is not enough or other reason?)
if it is worth writing a framewok to automaticly generate tc-CPU.[ch]( input
CPU.cpu file )?
(if i just want GAS produce a ELF format object file)
c.c.chen