home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   alt.os.development      Operating system development chatter      4,255 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 2,377 of 4,255   
   James Harris to muta...@gmail.com   
   Re: microsoft vs linux   
   30 Jun 21 17:25:39   
   
   From: james.harris.1@gmail.com   
      
   On 30/06/2021 03:23, muta...@gmail.com wrote:   
   > Win32 executables, at least normal ones, do not have   
   > environmental dependencies like particular segment   
   > registers being set to certain values, or certain interrupt   
   > vectors being set to certain values.   
   >   
   > That means that an unprivileged program can set up   
   > the necessary environment to satisfy the Win32   
   > executable.   
   >   
   > Linux programs on the other hand do INT 80H calls,   
   > just as MSDOS programs do INT 21H calls. This   
   > means the calling environment needs sufficient   
   > privilege to set up at least one interrupt vector.   
      
   It's not the calling environment which sets up the interrupt vector. The   
   kernel does that.   
      
   As others have said, the Linux kernel can be called in different ways.   
   Int 0x80 is just one of them. These days sysenter and syscall   
   instructions are normally used as they are faster. That said, ABI   
   compatibility is generally maintained so you should be able to call the   
   Linux kernel with the int if you wish.   
      
   It looks as though   
      
      https://youtu.be/4CdmGxc5BpU   
      
   would explain more.   
      
      
   --   
   James Harris   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca