Re: [Clax86list] Syscall interface



On Tue, 25 Apr 2006 05:07:01 +0100, Charles A. Crayne <spamtrap@xxxxxxxxxx> wrote:

On Mon, 24 Apr 2006 14:15:47 +0100
"Thomas Worthington" <spamtrap@xxxxxxxxxx> wrote:

:I've written a Forth compiler in assembly using the old Int80 mechanism
:and I want to convert to the new system, which I'm told is faster and
:cleaner but I can't find any useful info on accessing it via AL.

I use the system call interface when programming in assembler under Linux,
and it has indeed changed a lot over the years. The number of functions is
now nearing 300, and some of the old calls have been replaced with newer
versions. However, ultimately, they are all invoked by int 80h, so I don't
understand what you are asking for. Please give me a few more clues.

Linus said this in the discussion about the cross-platform virus:

'To make it even harder to hit - it probably also only happens with the old "int 0x80" system call mechanism, not with the modern "syscall" entrypoint.'

There have been various hints over the years that 0x80 is no longer the prefered method, for performance reasons, but I've not seen any documentation on what assembly language programmers need to do to access the "modern" entrypoint.

TWW

.



Relevant Pages

  • Re: [Clax86list] Syscall interface
    ... :I've written a Forth compiler in assembly using the old Int80 mechanism ... I use the system call interface when programming in assembler under Linux, ... However, ultimately, they are all invoked by int 80h, so I don't ...
    (comp.lang.asm.x86)
  • Re: [Clax86list] Syscall interface
    ... Charles A. Crayne wrote in part: ... :I've written a Forth compiler in assembly using the old Int80 mechanism ... I use the system call interface when programming in assembler under Linux, ...
    (comp.lang.asm.x86)
  • Re: [Clax86list] Syscall interface
    ... :I've written a Forth compiler in assembly using the old Int80 mechanism ... I use the system call interface when programming in assembler under ... I believe he's talking about the SYSENTER/SYSEXIT instructions ...
    (comp.lang.asm.x86)
  • Re: win32 or native NT windows API
    ... Windows uses int or sysenter. ... Code which is executed in user mode can ... If you want to learn how to write assembler code, ... reinvent the wheel on each piece of code it executes. ...
    (alt.lang.asm)
  • Re: Are byte types a smart choice?
    ... Iturns it into byte code and interperates it on the fly. ... The CLR specification defines the size of an int to ... > assembler programmer code better. ... equivalent of the old #defines and the int full of flags. ...
    (microsoft.public.dotnet.csharp.general)