1. How do I write inline assembly code in Euphoria?
- Posted by "Michael R.M. David" <michael2574661 at yahoo.com> Oct 21, 2003
- 517 views
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.
2. Re: How do I write inline assembly code in Euphoria?
- Posted by "Stewart MacKenzie-Leigh" <stewartml89 at msn.com> Oct 21, 2003
- 463 views
>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
3. Re: How do I write inline assembly code in Euphoria?
- Posted by Irv <irvm at ellijay.com> Oct 21, 2003
- 471 views
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
4. Re: How do I write inline assembly code in Euphoria?
- Posted by Robert Craig <rds at RapidEuphoria.com> Oct 21, 2003
- 516 views
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
5. Re: How do I write inline assembly code in Euphoria?
- Posted by "Michael R.M. David" <michael2574661 at yahoo.com> Oct 22, 2003
- 485 views
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! > > >