Re[2]: Sequence-Atom-DLL

new topic     » topic index » view thread      » older message » newer message

A suggestion for ec*.exe

if -dll parameter is passed, the ec*.exe should make a wrapper file
automatically (suggested name: filename.ed)

it contains something like:

-------
object foo_id
foo_id = define_c_func("filename", "_1foo@12",
{E_OBJECT, E_SEQUENCE, E_ATOM}, E_OBJECT)

global function foo(object a, sequence b, atom c)
    return c_func(foo_id, {a, b, c})
end function
------

So the user can easily "include filename.ed"
to use the library without making a wrapper for the dll
again.

Thanks

______________________________________________
R> C. K. Lester wrote:
>> Why make anything a .DLL? I'm guessing there's a speed-up in execution of
>> the code? Is that the only benefit... speed?

R> You have to compare it with simply making your library
R> source available as an include file.

R> In .dll form ...

R> Your library will execute faster, even for people who
R> don't use the Translator.

R> Your source code will be well hidden.
R> It will actually be better hidden than if you wrote the library
R> in C and compiled to machine code, since the Euphoria to C
R> translation makes the mapping from source to machine code even
R> more obscure. (you could also use the shrouder to hide your code).

R> Your code will be immune to changes in other include files.

R> Your library might be usable by a program written in
R> another language. Although as we've seen, there are
R> some issues there.

R> Regards,
R>     Rob Craig
R>     Rapid Deployment Software
R>     http://www.RapidEuphoria.com

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu