public inbox for cgen@sourceware.org
 help / color / mirror / Atom feed
* Some CGEN problems
@ 2008-04-21  8:12 Kai Henningsen
  2008-04-21 19:06 ` Frank Ch. Eigler
  0 siblings, 1 reply; 6+ messages in thread
From: Kai Henningsen @ 2008-04-21  8:12 UTC (permalink / raw)
  To: cgen

I'm playing with CGEN for a virtual cpu.

Maybe the largest problem (after the rather sparse documentation) is
that the pmacro system seems to be much weaker than GCC's iterator
system.

I've yet to figure out a way to iterate over two variables (such as
"integer opcodes" and "modes for integer opcodes"), or a way to handle
what GCC does with iterator attributes (such as the mapping from RTL
operands to opcode names). Right now, the best way I can think of is
to generate CGEN input with a Perl script ... but surely the whole
point of CGEN is that I shouldn't need that?!

This (and the growing list of stuff that I find that CGEN doesn't even
try to handle) makes me wonder if it might be easier to not use CGEN.
Of course, binutils documentation isn't any better. I thought GCC
documentation was sparse, but compared with these two, it's positively
encyclopedic!

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

end of thread, other threads:[~2008-05-15 19:54 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-04-21  8:12 Some CGEN problems Kai Henningsen
2008-04-21 19:06 ` Frank Ch. Eigler
2008-04-21 19:36   ` Kai Henningsen
2008-04-22 17:18     ` Frank Ch. Eigler
2008-04-26 18:37     ` Jim Blandy
2008-06-01 14:14       ` Kai Henningsen

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