Re: How do I write inline assembly code in Euphoria?

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

Michael David wrote:
> I just want to know whether there is any way of
> interfacing assembly language code to Euphoria on
> Linux. That is replacing parts of euphoria code with
> inline assembly code optimised for my processor.

call() works on Linux. - see Library.doc

You can call C routines in shared libraries. - see demo/linux

In Euphoria 2.4, you can define a machine code routine
to take arguments like a C routine, then you can
call it via c_func()/c_proc() - see demo/callmach.ex
for a couple of Linux examples.

You can translate to C and then insert the machine
code into one of the C files, using the C compiler's mechanism
for that.

You can use Pete Eberlein's mini-assembler in the Archive
to convert assembly language statements to sequences
of numeric Intel machine codes.

Regards,
    Rob Craig
    Rapid Deployment Software
    http://www.RapidEuphoria.com

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

Search



Quick Links

User menu

Not signed in.

Misc Menu