1. How do I write inline assembly code in Euphoria?

Hi Everyone,

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.

Can anyone let me know?

Thanks and Regards,
Michael.

new topic     » topic index » view message » categorize

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

>From: Michael David <michael2574661 at yahoo.com>
>Subject: How do I write inline assembly code in Euphoria?
>
>
>Hi Everyone,
>
>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.
>
>Can anyone let me know?
>
>Thanks and Regards,
>Michael.
>
>
>
>TOPICA - Start your own email discussion group. FREE!
>

There is an assembler which returns a sequence of opcodes which you poke to 
ram in the
Euphoria Archive.  Not sure if it is for Linux, though.

Stewart

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

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

On Tuesday 21 October 2003 03:27 pm, Michael wrote:

> Hi Everyone,
>
> 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.
>
> Can anyone let me know?

Would it be enough to write the code in C, and link to it in Euphoria?
That's pretty easy, and way simpler than trying to write directly in ASM.

Irv

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

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

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 message » categorize

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

Hi everyone,

Thank you for all the replies. Will try out all the
suggestions and let you know what worked shortly.

Regards,
Michael.

--- Michael David <michael2574661 at yahoo.com> wrote:
> 
> 
> Hi Everyone,
> 
> 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.
> 
> Can anyone let me know?
> 
> Thanks and Regards,
> Michael.
> 
>
> 
> 
> TOPICA - Start your own email discussion group.
> FREE!
>
>
>

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

Search



Quick Links

User menu

Not signed in.

Misc Menu