Externals written in not(c)

Gordon Webster gwalias-rev at yahoo.com
Tue Jan 4 19:25:36 EST 2005


Dear Dar

Thanks for the response. Yes, it's mostly matrix-type
math for 3D systems that I want to do and some of the
calculations will take some time to complete, even as
native code. 

I'm not clear from your reply though, what it is I
actually need in my DLL ... let's say I just want to
write a single test function for multiplying two
numbers together - I will export this in my DLL, but
what else do I need?

> You need 
> to export a single function that provides all the
> calling info.

Could you elaborate?

Best

Gordon

--- Dar Scott <dsc at swcp.com> wrote:

> 
> On Jan 4, 2005, at 3:29 PM, Gordon Webster wrote:
> 
> > It
> > clearly says that you can write an external in any
> > language of your choosing provided that the
> > compilation supports certain features that are
> > essential for the rev interface.
> 
> Yes, it can be done if your dll can handle the
> C-style calls.  You need 
> to export a single function that provides all the
> calling info.
> 
> However, it might be easier to create a glue dll.  I
> do that for C++.
> 
> If you're just doing some math, you might want to
> consider just doing 
> it in C.
> 
> There is an overhead for external calls, so you want
> to do many 
> primitive math operations per call.
> 
> Rev is pretty fast at math.  You might want to run
> some tests to see if 
> this is worthwhile.  Maybe it will be in some
> complicated formulas or 
> in matrix operations.
> 
> Dar
> 
> **********************************************
>      DSC (Dar Scott Consulting & Dar's Lab)
>      http://www.swcp.com/dsc/
>      Programming Services and Software
> **********************************************
> 
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
>
http://lists.runrev.com/mailman/listinfo/use-revolution
> 


=====
:::::::::: Gordon Webster ::::::::::


More information about the use-livecode mailing list