1. RE: Embedding machine code

My Mixedlib.e has shl, shr, and other machine code in it.

http://www.rapideuphoria.com/mixedlib.zip

Bernie

new topic     » topic index » view message » categorize

2. RE: Embedding machine code

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

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu