Re: Embedding machine code

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

If I remember correctly you need to use eu 2.4 to use that...



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

D> However, the code doesn't work because it has lines like this ...


D>   SHIFT_LEFT = define_c_func("", SHL_SPACE, {C_INT, C_INT}, C_INT)

D> but that gives the error message ...

D> c:\euphoria\include\dll.e:50 in function define_c_func()
D> type_check failure, lib is {}


D> Any ideas about how I should actually call these machine code routines?

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

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

Search



Quick Links

User menu

Not signed in.

Misc Menu