This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
__builtin_apply
- To: gcc-bugs at gcc dot gnu dot org
- Subject: __builtin_apply
- From: Stuart Meikle <stuart at bastionsoftware dot com>
- Date: Tue, 26 Oct 1999 10:25:04 +0100 (BST)
Hi folks,
What I'm trying to do:-> pass unknown parameters to a remote function
running on a similar machine and return the results. machine
configurations are the same - i expect to be able to call the remote
functions directly using a copy of the stack from the other machine.
blah. anyway i see that there are 3 functions : __builtin_apply ,
__builtin_apply_args, etc which should enable me to do this. but, in fact
don't because they say that one of the parameters is 'tricky' to
calculate. this makes them rather useless as there's a danger i can mess
the stack up by getting size wrong.
i guess forming function calls is done all the time in GCC, so i can't
understand why these functions are so mysterious. can we fix them ?? I can
do this myself if you guys are busy, but then where can I find out about
gcc's function-calling strategy ? ( I see from assembler output that's its
not quite as trivial as pushing the parameters onto the stack and then
popping them off in the function ).
anyway, any help would be appreciated, thanks
Stuart
Stuart Meikle
Technical Director
-------------------------------------------------------------
B A S T I O N S O F T W A R E L I M I T E D
-------------------------------------------------------------
tel:(+44) 114 2211809 http://www.bastionsoftware.com
Sheffield Science Park, Arundel Street, Sheffield, UK. S1 2NS