Re: Low level euphoria

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

I don't mean have compiling the asm builtin, I mean making the calls to it
builtin, for speed.
I prefer to be able to compile the asm myself anyway.
I think there would be a great speed increase because
float_to_atomXX/atom_to_floatXX is very slow compared to c_func(X,{C_FLOAT's
and C_DOUBLE's}) thats what I want.
Daniel Kluss

----- Original Message ----- 
From: "Matt Lewis" <matthewwalkerlewis at yahoo.com>
To: "EUforum" <EUforum at topica.com>
Subject: RE: Low level euphoria


>
>
> > From: xerox_irs at lvcm.com [mailto:xerox_irs at lvcm.com]
>
>
> > I'm a very happy euphoria programmer, and I was thinking how much
> > happier I would be if I could pass parameters strait to asm, and
> > asm could pass params strait back. Now I know this is very similar
> > (if not the same thing as c_func/c_proc/call_back) to what is available,
> > but I'm a dos programmer mainly, and while I understand C and can
> > use it well, I don't want to(make some kind of dos-dll system). I
> > would very much apprecitive if the c_func/c_proc/call_back could be
> > extended/combined with call(for asm) so I could say(do the below),
> > I like call_back the way it is, but I think it should be extended to
> > dos also(PLEASE) although this may require making alot of the euphoria
> > interpreter reerrant(which may be more work than I relise), but the
> > asm_func/asm_proc/asm_define_func/asm_define_proc should be very easy.
> > Another reason for all of this is because one major things I've noticed
> > is that when(In dos) I call an asm with atoms(not integer, i mean
> > floating P's) the atom_to_float32/64 is very slow compared to win32's
> > c_func with C_DOUBLE/C_FLOAT params, and thats probably somthing to do
> > with the calling process being all builtin and not jumping back and
forth
> > between builtin and eu code(atom_to_float32, then poke, then call, then
> > peek4, then float32_to_atom()).
>
> As was mentioned, Pete's asm.e (see the archives) is a very handy tool for
> using asm in Euphoria.  I've got a tool that allows you to call a function
> by pointer.  Of course, usually it's really a compiled C/C++ function, but
> it's the calling convention that matters.  Check out fptr.e.  You can get
it
> at my page:
>
> http://www14.brinkster.com/matthewlewis/projects.html
>
> It lets you call any routine so long as you know its address, and allows
> passing parameters.
>
> Matt Lewis
>
>
>
> TOPICA - Start your own email discussion group. FREE!
>
>

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

Search



Quick Links

User menu

Not signed in.

Misc Menu