Re: questions from a newbie
- From: "Mad_guy" <mad.one@xxxxxxxxx>
- Date: 26 May 2006 13:03:42 -0700
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.
.
- References:
- questions from a newbie
- From: Chinlu
- Re: questions from a newbie
- From: Frank Kotler
- Re: questions from a newbie
- From: Chinlu
- questions from a newbie
- Prev by Date: Re: questions from a newbie
- Next by Date: Re: questions from a newbie
- Previous by thread: Re: questions from a newbie
- Next by thread: Re: questions from a newbie
- Index(es):
Relevant Pages
|