Re: questions from a newbie



Why frank? I mean, I thought one could use some set of instructions
which would be common to the whole x86 32bit arch (intel, amd, etc.),
whilst each processor in particular might have different, more, or less
instructions on top of a "common assembler", and obiously appart from
other extensions like 3dnow, etc. I don't seem to understand how for
example linux can run in my machine as well as in yours, if things
doesn't happen more or less like this.

I think what Frank was getting at is that not only do different
processors use different opcodes and mnemonics, but different systems
also handle the same assembly language differently. For example, in
Linux you might make extensive use of system calls and interrupts in
order to do things. In a system like Windows, there's no such 'system
interrupt' calls available (there are in the native api but that is
something you need not concern yourself with, doing something like "int
0x80" in windows 9x will cause a BSOD, and in windows NT your program
will just get killed) so porting the asm verbatim is out of the
question, really. The former is a much bigger concern in systems like
Linux in which the system can (and probably will) run on a very large
amount of processors, meaning you'll have to rewrite your asm for every
architecture you're willing to support. And if you have a large amount
of this code, it will be a very long and tedious process.

.



Relevant Pages

  • Re: Aloowing access to specific samba users
    ... Mike Evans wrote: ... I've got a bit stuck with Samba shares but I'll bet that's a common ... may be the same as your linux users - but not necessarily so. ... I have added the user to the share but of course windows still ...
    (Fedora)
  • Re: May I introduce myself to cobol?...
    ... >> that works on Linux. ... But the current strength with Windows is that right from start-up ... > you have a common display with a common 'look and feel' which keeps ... applications on the platform behave similarly, ...
    (comp.lang.cobol)
  • Re: Linux...Is it REALLY FREE? How much is YOUR TIME WORTH?
    ... >>Our database servers run Linux much like the Microsoft Hotmail service ... >>booting into windows for games. ... > sucks that there aren't many really good Linux games. ... > viruses is directly proportional to the amount of access you give ...
    (alt.os.linux.suse)
  • Re: How many times can i install XP on same computer
    ... That's the typical way one works with Windoze. ... Most Windows Users NEVER EVER installed a Windows OS, ... > they all seem to do, the most common "solution" is to wipe the drive ... > Coming from a guy who hasn't yet ever got Linux up and running, ...
    (microsoft.public.windowsxp.general)
  • Re: May I introduce myself to cobol?...
    ... > you have a common display with a common 'look and feel' which keeps ... Actually the 'common' look and feel keeps changing with Windows. ... Linux already has a long term success. ... spam is from networks of these machines. ...
    (comp.lang.cobol)