no, not really, most assembly is platform specific.
for instance:
addi $1,1,$2
will set $1=1+$2 on x86
and set $2=1+$1 on alpha.
C is the reason for its portability. the C is compiled on a specific platform.
the C compiler then converts the C into the platform assembly.
so in C:
firstvalue = 1+ secondvalue;
will compile for both alpha and x86, and will be
x86: addi $1,1,$2
alpha: addi $2,1,$1.
Thus, compatability is established.
Sincerly
Tobias Ussing
On Sunday 22 February 2004 03:13, Robert Köpferl wrote:
It's not
impossible to write a modern kernel in assembly, BeOS was a
fine example of such a thing. It's a shame that Microsoft killed it...
OK, and assembly is the reason for it's portability, isn't it?
_______________________________________________
ros-general mailing list
ros-general(a)reactos.com
http://reactos.com/mailman/listinfo/ros-general
_______________________________________________
ros-general mailing list
ros-general(a)reactos.com
http://reactos.com/mailman/listinfo/ros-general