[m-dev.] foreign type syntax

Fergus Henderson fjh at cs.mu.OZ.AU
Mon Oct 29 19:36:28 AEDT 2001


On 29-Oct-2001, Tyson Dowd <trd at cs.mu.OZ.AU> wrote:
> If you specify the types using C syntax, you are going to have a bit of
> a hard time marshalling them to and from asm (you won't know how to
> generate type specifications in gcc's tree representation without
> parsing the type specifications).

What's wrong with just using `gcc__ptr_type_node' for all such types, and
handling the marshalling needed by generating appropriate C code in the
C wrapper function that we generate for C `pragma foreign_proc' procedures?

-- 
Fergus Henderson <fjh at cs.mu.oz.au>  | "... it seems to me that 15 years of
The University of Melbourne         | email is plenty for one lifetime."
WWW: <http://www.cs.mu.oz.au/~fjh>  |     -- Prof. Donald E. Knuth
--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to:       mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions:          mercury-developers-request at cs.mu.oz.au
--------------------------------------------------------------------------



More information about the developers mailing list