Listing 1:
for(;;){/*do something*/
}
Listing 2:
mov edx, 1
mov ecx, 2
mov ebx, 3
mov eax, 4
Listing 1 would probably work on an Alpha, a PPC, i386, Ultra Sparc, PDP-11 yadda yadda yadda.
Listing 2 would only work on x86 compatibles.
Why can't we just define what an assembler is ? It would be much easier. An assembler assembles assembly. Simple. Anything that does not do this is not an assembler.
So Listing 1 is a high level language, Listing 2 is not.
Listing 1: for(;;){ /*do something*/
}
Listing 2:
mov edx, 1
mov ecx, 2
mov ebx, 3
mov eax, 4
Listing 1 would probably work on an Alpha, a PPC, i386, Ultra Sparc, PDP-11 yadda yadda yadda.
Listing 2 would only work on x86 compatibles.
Why can't we just define what an assembler is ? It would be much easier. An assembler assembles assembly. Simple. Anything that does not do this is not an assembler.
So Listing 1 is a high level language, Listing 2 is not.