1. RE: Embedding machine code
- Posted by "Bernard W. Ryan" <xotron at bluefrognet.net> Feb 26, 2004
- 560 views
My Mixedlib.e has shl, shr, and other machine code in it. http://www.rapideuphoria.com/mixedlib.zip Bernie
2. RE: Embedding machine code
- Posted by Matt Lewis <matthewwalkerlewis at yahoo.com> Feb 26, 2004
- 520 views
Derek Parnell wrote: > > > However, the code doesn't work because it has lines like this ... > > SHIFT_LEFT = define_c_func("", SHL_SPACE, {C_INT, C_INT}, C_INT) > > but that gives the error message ... > > c:\euphoria\include\dll.e:50 in function define_c_func() > type_check failure, lib is {} > > Any ideas about how I should actually call these machine code > routines? > You could use fptr.e. http://www.rapideuphoria.com/fptr.zip Matt Lewis