the reason why we translate is that source code may be in assembly( low level language) or high level language and the only language computer understand is 0s and 1s which is binary code so the program written in either assembly or high level language must be convert or translate to binary and program written in HLL are in English form while the assembly are equivalent machine language.
A machine code program. Machine code is the native language of the machine and the only language actually understood by the machine. However, program instructions can be written using a high-level programming language that the computer can translate into machine code using another machine code program called a compiler.
An assembly program is a machine-dependent program written in a low-level symbolic code known as assembly language.
That means to convert the original program - the source code, written by a programmer - into machine language, or into an intermediate form, for example, Java bytecode in the case of Java.That means to convert the original program - the source code, written by a programmer - into machine language, or into an intermediate form, for example, Java bytecode in the case of Java.That means to convert the original program - the source code, written by a programmer - into machine language, or into an intermediate form, for example, Java bytecode in the case of Java.That means to convert the original program - the source code, written by a programmer - into machine language, or into an intermediate form, for example, Java bytecode in the case of Java.
the program written in high level language is called "source program"
A compiler.
This is usually the first stage in compilation. The source code is read and checked for syntax and usability then passed to the compile stage to be converted to object (or machine) code that the computer can understand.Translator translates program written in one programming language into (equivalent) program written in another language. For example, Java to C# translator would translate Java program into (equivalent) C# program. This is similar to as if you would translate some text in English into Spanish or vice versa.If target language is lower level language like assembly language, machine language, or pseudocode, translator is called compiler. For example, some C++ compiler could compile (translate) program in C++ into machine code.
This is usually the first stage in compilation. The source code is read and checked for syntax and usability then passed to the compile stage to be converted to object (or machine) code that the computer can understand.Translator translates program written in one programming language into (equivalent) program written in another language. For example, Java to C# translator would translate Java program into (equivalent) C# program. This is similar to as if you would translate some text in English into Spanish or vice versa.If target language is lower level language like assembly language, machine language, or pseudocode, translator is called compiler. For example, some C++ compiler could compile (translate) program in C++ into machine code.
A machine code program. Machine code is the native language of the machine and the only language actually understood by the machine. However, program instructions can be written using a high-level programming language that the computer can translate into machine code using another machine code program called a compiler.
Translator is defined as a computer program that converts instructions written in one language to another without changing the initial logic in terms of computer language.
This is usually the first stage in compilation. The source code is read and checked for syntax and usability then passed to the compile stage to be converted to object (or machine) code that the computer can understand.Translator translates program written in one programming language into (equivalent) program written in another language. For example, Java to C# translator would translate Java program into (equivalent) C# program. This is similar to as if you would translate some text in English into Spanish or vice versa.If target language is lower level language like assembly language, machine language, or pseudocode, translator is called compiler. For example, some C++ compiler could compile (translate) program in C++ into machine code.
A translator takes a program written in source language as input and converts it into a program in target language as output. It also detects and reports the error during translation. • Translating the high-level language program input into an equivalent machine language program.
An assembly program is a machine-dependent program written in a low-level symbolic code known as assembly language.
Yes! assembly language is machine dependent. Because program are written by means of memory and register on computer thats are very effective, and also have not high level skill in the program.
MOTHER TONGUE OF A COMPUTER:Everyone of us knows at least one or two human languages such as English ,Urdu ,Chinese .One of there is our tongue , the language which we learned from childhood . Similarly , computer have their own "mother tongue ". The mother tongue of a computer is machine language.Machine language instructions are in binary form.computer language(1) A programming language or machine language.(2) Everyday computer language, which includes computer technologies and concepts as well as hardware and software products .MACHINE LANGUAGE ADVANTAGES :Machine language program is written is machine code.This is the only language that the computer can understand directly . The main advantages of machine languages are:Machine code is carried out faster as it is the "native language" of the computer.It occupies less momory space.DISADVANTAGES :However , it has the following disadvantages:Each type of computer has its own set of instruction codes so each machine work ononly one type of computer.Its very laborious to write programs in machine codes. Programs in machine codeare also difficult to decode and modify.There was a time when programmers had to write programs in machine language.Now programmers can use programmiong language.We will look into programming languages next.TYPES OF PROGRAMMING LANGUAGE:We can write a program in a programing language and then translate it into a machine language look at the simple program written in a programming language called BASIC .This program tells the computer to find the area of a square and display the answer on the screen10 Rem Calculate The area of square20 Let side = 1230 AREA =Side * Side40 Print AREAAs you can see .the program statemnet are easier to read , unlike the machine code .A program written in any one of the programming languages is called the source code,The source code has to be translate to machine code before it can be executed. We need a computer translator for this purpose.The machine code is save as an executable file.The executable program file is called the object code.A COMPUTER TRANSLATOR:A computer translator is yet another program. Its function is like that of a human tanslator.Ahuman translator orinterpreter who knows both English and Urdu can help a Pakistani and an Englishman to converse.TYPES OF COMPUTER TRANSLATORS:There are two types of computer translators :InterpretersCompilersINTERPRETERS:An interpreter is a program that translates and executes each source code statment before translating and executing the next statment.COMPILERSCompiler is a program that translate all the source code statment before it executes the program.
That means to convert the original program - the source code, written by a programmer - into machine language, or into an intermediate form, for example, Java bytecode in the case of Java.That means to convert the original program - the source code, written by a programmer - into machine language, or into an intermediate form, for example, Java bytecode in the case of Java.That means to convert the original program - the source code, written by a programmer - into machine language, or into an intermediate form, for example, Java bytecode in the case of Java.That means to convert the original program - the source code, written by a programmer - into machine language, or into an intermediate form, for example, Java bytecode in the case of Java.
Machine language, also known as low-level language, is the most basic programming language that is directly understood by a computer's central processing unit (CPU). The main advantage of machine language is that it allows for precise control over the computer's hardware, resulting in fast and efficient execution of instructions. However, machine language is extremely difficult for humans to read and write, making it prone to errors and challenging to debug. Additionally, machine language is specific to the type of computer architecture, making programs written in machine language non-portable across different systems.
"Source code", in a programming language, refers to the original program, as written by a programmer (and more or less readable by humans); the version of the program before it is converted into machine language by the compiler.