From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg McGary To: Doug Evans Cc: cgen@sourceware.cygnus.com Subject: how to implement general macro-insn expansion? Date: Tue, 19 Dec 2000 22:54:00 -0000 Message-id: References: <200012182002.NAA03245@kayak.mcgary.org> <14910.31997.701815.400981@casey.transmeta.com> X-SW-Source: 2000-q4/msg00281.html Doug, I found this comment in opc-itab.scm before the definition of `-gen-macro-insn-table': ; The general form is a Scheme expression that is interpreted at runtime to ; decide how to perform the expansion. Yes, that means having a (perhaps ; minimal) Scheme interpreter in the assembler. I hope the idea of having a scheme interpreter in the assembler is outdated. My plan was to reuse as much of rtl-c.scm as possible to generate something analogous to sem-switch.c for the gas-runtime stuff. ; Another thing to do is have a builder for each real insn so instead of ; expanding to text, the macro-expansion could invoke the builder for each ; expanded-to insn. I don't understand this statement. Could you elaborate? Thanks, Greg