can anyone tell me the need for computer language translation? lol :confused:
Printable View
can anyone tell me the need for computer language translation? lol :confused:
If you can ellaborate - perhaps we can tell you. :confused: :confused: :confused:
I mean in contrast with compilers, interpreters and assemblers. :confused:
I'm still not certain what you mean by "translation"? From a computer language to what?
ok.. lol What I mean by the need for language translation is why do we need them as in language processors such as compilers interpreters and assemblers ?
Oh, I think I know what you mean.
Something has to translate programming code into a language that the machine understands, like...machine language...binary...ones and zeros.
Indeed.
A processor only understands numbers (machinecode), it can't read text like we can.
The operations that the processor can execute are also very, very basic. (not to be confused with BASIC :))
For us humans a long list of numbers is hard to read and it is hard to see the higher functions in all those basic instructions.
Assembly is a bit higher than machinecode.
Numbers are substituted with short words but you are still giving very lowlevel instructions.
You need an assembler to translate assembly code into machinecode.
High level languages (C, BASIC)make code even more readable and does a lot of lowlevel stuff for the programmer.
You need a compiler to translate high level code into machinecode.