Embedding machine code

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

I wanted to use Juergen's 'bit.e' library for doing 32-bit manipulations 
because he uses machine code to achieve get over Euphoria's lack of 
32-bit integers.

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?

What I really need is when I have an atom that exceeds a 32-bit format I 
want to chop off the excess bits and only keep the low 32 bits.


-- 
Derek

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

Search



Quick Links

User menu

Not signed in.

Misc Menu