Related articles |
---|
representing functions with arguments in an abstract syntax tree melkorainur@yahoo.com (2003-12-27) |
Re: representing functions with arguments in an abstract syntax tree torek@torek.net (Chris Torek) (2004-01-02) |
Re: representing functions with arguments in an abstract syntax tree malcolm@55bank.freeserve.co.uk (Malcolm) (2004-01-02) |
Re: representing functions with arguments in an abstract syntax tree cfc@world.std.com (Chris F Clark) (2004-01-02) |
Re: representing functions with arguments in an abstract syntax tree jacob@jacob.remcomp.fr (jacob navia) (2004-01-02) |
Re: representing functions with arguments in an abstract syntax tree witness@t-online.de (Uli Kusterer) (2004-01-02) |
From: | Uli Kusterer <witness@t-online.de> |
Newsgroups: | comp.compilers,comp.lang.c |
Date: | 2 Jan 2004 03:44:18 -0500 |
Organization: | T-Online |
References: | 03-12-142 |
Keywords: | code |
Posted-Date: | 02 Jan 2004 03:44:18 EST |
melkorainur@yahoo.com (Melkor Ainur) wrote:
> then I'm a bit stuck because of the need to
> generate arguments for the builtin function. To be specific, how do
> (or is it even possible) I write a generic function pointer that can
> represent all my different functions. some that have multiple
> promotable-arguments (chars, ints) and pointers. and then, how do I
> Pass these functions their arguments?
There are some libraries that let you call functions with arbitrary
signatures. I'm successfully using libFFI (part of GCC, IIRC, but it's
not under the GPL), and I think there's also a libffcall or something
like that.
The "FF" part in both stands for "foreign functions".
Cheers,
-- M. Uli Kusterer
http://www.zathras.de
Return to the
comp.compilers page.
Search the
comp.compilers archives again.