How does the computer understand a programming language conver into machine language?
Answers
Answered by
1
Hi there!
Here's the answer:
°•°•°•°•°•°<><><<><>><><>°•°•°•°•°•°
¶¶¶¶ CREATING AND RUNNING PROGRAMS ¶¶¶
• It is the job of the programmer to write and test the program.
¶¶ There are 4 steps in these process:
1. Writing and Editing the program
2. Compiling the program
3. Linking the program with required library modules
4. Executing the program
°•°•°•°•°•°<><><<><>><><>°•°•°•°•°•°
¶ The software used to write the program is known as 'text editor'. It helps us to enter, change and store character data.
¶ The code in a Source file stored on the disc must be translated into machine language. This is the JOB OF 'COMPILER'
• The compiler is actually two separate programs:
1. The Processor
2. The Translator
¶ 'Translator' translates the translation unit and writes the resulting object module to a file (filename.obj).
¶ The object code and supporting library files are input to the linker and linker will generate the executable code(filename.exe)
¶ Once our program has been linked, it is ready for execution. To execute the program, we use an Operating System (OS) Command such as 'RUN' to load the program into primary memory and execute it.
¶ The final result will be displayed onto a monitor or we can store onto a Hard Disc type.
¶ Getting the program into memory is a function of an Operating System program known as 'Loader'.
°•°•°•°•°•°<><><<><>><><>°•°•°•°•°•°
##Check the attachment for figure.
Flow:
(text editor) ---- (compiler) ---- (linker[for linking library files] ) --- (Runner)
O/p of Text editor - filename.c
O/p of Compiler - filename.obj(Machine understandable file)
O/p of linker -- filename.exe
O/p of runner -- results.
{^^^ Answered as per C }
°•°•°•°•°•°<><><<><>><><>°•°•°•°•°•°
©#£€®$
:)
Hope it helps
Here's the answer:
°•°•°•°•°•°<><><<><>><><>°•°•°•°•°•°
¶¶¶¶ CREATING AND RUNNING PROGRAMS ¶¶¶
• It is the job of the programmer to write and test the program.
¶¶ There are 4 steps in these process:
1. Writing and Editing the program
2. Compiling the program
3. Linking the program with required library modules
4. Executing the program
°•°•°•°•°•°<><><<><>><><>°•°•°•°•°•°
¶ The software used to write the program is known as 'text editor'. It helps us to enter, change and store character data.
¶ The code in a Source file stored on the disc must be translated into machine language. This is the JOB OF 'COMPILER'
• The compiler is actually two separate programs:
1. The Processor
2. The Translator
¶ 'Translator' translates the translation unit and writes the resulting object module to a file (filename.obj).
¶ The object code and supporting library files are input to the linker and linker will generate the executable code(filename.exe)
¶ Once our program has been linked, it is ready for execution. To execute the program, we use an Operating System (OS) Command such as 'RUN' to load the program into primary memory and execute it.
¶ The final result will be displayed onto a monitor or we can store onto a Hard Disc type.
¶ Getting the program into memory is a function of an Operating System program known as 'Loader'.
°•°•°•°•°•°<><><<><>><><>°•°•°•°•°•°
##Check the attachment for figure.
Flow:
(text editor) ---- (compiler) ---- (linker[for linking library files] ) --- (Runner)
O/p of Text editor - filename.c
O/p of Compiler - filename.obj(Machine understandable file)
O/p of linker -- filename.exe
O/p of runner -- results.
{^^^ Answered as per C }
°•°•°•°•°•°<><><<><>><><>°•°•°•°•°•°
©#£€®$
:)
Hope it helps
Attachments:

Similar questions