On 20 Nov 2007, at 09:41, Michael Van Canneyt wrote:
Easy: look up the method in RTTI - you'll get the address.
Push all arguments on the stack (see Remobjects/Innerfuse
PascalScript on
how to do this, you need some assembler for it), and return result
value.
And breaks every other FPC release to due bug fixes/changes in
calling conventions, and needs to be ported to at least the default
calling convention for every supported target.
2 days, tops.
You basically have to re-implement 80% of compiler/<arch>/cpupara.
There's no way you can do that in two days. Not to mention that it's
a horrible and completely unsupported hack.
Jonas
_______________________________________________
fpc-devel maillist - fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel