public inbox for cgen@sourceware.org
 help / color / mirror / Atom feed
* I mainly need an as and ld port
@ 2006-04-04 17:34 Lindley, Robert A
  2006-04-04 23:35 ` Frank Ch. Eigler
  0 siblings, 1 reply; 2+ messages in thread
From: Lindley, Robert A @ 2006-04-04 17:34 UTC (permalink / raw)
  To: cgen; +Cc: fche

Thanks for the help. GCC and friends is a much larger universe
than I expected. 
 
My need is to just assemble, load, and create an S-file for
a PROM burner.
 
There is no need to use the GCC compiler or any higher level
language. 
 
Is CGEN overkill for what I am trying to do?
 
The Z8000 is sort of close to the MECA-43.  Basically all 16 bit
instructions and both 16 and 32 bit data.
 
Looking at the z8kgen.c file and the m32r files made by CGEN
for the m32r there is almost no relation.
 
Looked through the gas opcode documentation. Tried to use 
"makinfo --html" to make the *.texi files readable. But, can't
find the root of the tree of files. Everything fails because
something or another is not defined. Only a few files made any
output. (I have no clue how to run Emacs and the info document
reader thing doesn't know anything about the files that I
want to look at.)
 
I can't find out how to make a file like z8kgen.c. All the things
are encoded with codes that I can't find any description of.
 
Your suggestion of hand-written gas/bfd/ld/simulator code seems
the way to go. Hours of searching has produced no results for
information on the exact files to be made, the exact format of
each files, how to update the make files for automake, etc. etc.
I expect that it should be in the binutils package, but I can't
find it. 
 
Thanks,
Bob Lindley
 
 

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

* Re: I mainly need an as and ld port
  2006-04-04 17:34 I mainly need an as and ld port Lindley, Robert A
@ 2006-04-04 23:35 ` Frank Ch. Eigler
  0 siblings, 0 replies; 2+ messages in thread
From: Frank Ch. Eigler @ 2006-04-04 23:35 UTC (permalink / raw)
  To: Lindley, Robert A; +Cc: cgen

Hi -

> [...]  Is CGEN overkill for what I am trying to do?

Not really, but recall that even CGEN handles only a part of the
binutils port.  There is stuff to hand-write with or without CGEN,
and of course more without it.

> The Z8000 is sort of close to the MECA-43.  Basically all 16 bit
> instructions and both 16 and 32 bit data.

The more regular, RISC-like the instruction set, the better fit
it is for CGEN.

> [...] I have no clue how to run Emacs and the info document reader
> thing doesn't know anything about the files that I want to look at.)

The "make info" in build directories like gas/, bfd/, etc. can help,
and some even have a "make html" target in their doc/ subdirs.  If
it's too much hassle to figure it out, of course the .texi files are
readable ASCII.


> I can't find out how to make a file like z8kgen.c. All the things
> are encoded with codes that I can't find any description of.

z8kgen.c is not related to cgen, except perhaps as a motivation.
There are several other generator type tools in the whole toolchain
(for another, see igen in the gdb simulators).  CGEN was meant to
unify and generalize them.

> Your suggestion of hand-written gas/bfd/ld/simulator code seems
> the way to go. Hours of searching has produced no results for
> information on the exact files to be made, the exact format of
> each files,  how to update the make files for automake, etc. etc.

There is no substitute for a certain amount of self-education to gain
familiarity with the configury system in general, and the specific
build procedure for a similar existing target.

My simple recipe is to duplicate an existing target by a mass copy &
rename.  Pick a base target for replication like "iq2000" or "ip2k",
which are strings unlikely to occur elsewhere.

- FChE

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

end of thread, other threads:[~2006-04-04 23:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-04-04 17:34 I mainly need an as and ld port Lindley, Robert A
2006-04-04 23:35 ` Frank Ch. Eigler

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).