On Mon, Apr 29, 2002 at 07:34:22PM +0100, Simon Cozens wrote:
> Steve Fink:
> > The assembler needs to be taught about the PMC constants:
> 
> I disagree. Once you start adding assembler functions to make it easier 
> for humans to use, you won't stop. I consider the assembler a tool for
> machines to use. But if you want to do it, here's a patch.

I half agree. The way I was thinking about adding it was to have
rudimentary macros, and generate a prologue that defined all of the
standard PMC types:

..def PerlArray 1
..def PerlString 2
  .
  .
  .

Then you'd either have a .include directive, or there would be an
assembler driver script that would know to suck in the prologue. I
know you're not crazy about assembler macros, but IMO it's better to
allow compilers to run with minimal knowledge of parrot internals.

Reply via email to