Newer Post or latest post

What do you mean by database application on the computer?

Image
What do you mean by database application on the computer? The database application provides the database tools to manage the data in the model of relational database. The relational database model application includes the different types of option and applies some query processes on the record of the database file and their attributes values in the table database. The query is performed by the query processor on the record using the key attributes on the relational database model. Database application included the different types of parts that process the data into the database file, where the user mostly uses the relational database model to process the text data in the table format of database file which included the record, attributes and query processor to apply the commands on the record to process the values of the attributes on the records of the relational database file. The user get the solution of the output data using the database programming to get the values processed by t

What is compiler? Give the difference between a compiler and an interpreter?

What is a compiler? Give the difference between a compiler and an interpreter?

Compiler:

i) A program which translates a high level language program into a machine level language program is known as a compiler.

ii) Compiler goes through the entire program and then translates the entire program into the machine code. (see fig I.)

compiler compiles into machine code
fig I Compiler compiles the program into the machine code

Image reference of the compiler, program and the machine codes

In the image the left side box entity is a compiler. The compiler shows the program you have written in the text editor or program editor compiles the whole program. The dotted line shown from the left side entity “the compiler” through the program just represents the compilation of the whole program. The dotted line also shows the program change into the machine code after the compiler compiles the whole program. These machine codes go to the ALU in the CPU that processes the codes and gives the instruction to the output units to perform a program output on the monitor.

iii) A compiler shows a list of errors along with the line numbers at the end of the program execution. (see fig. II)

compiler shows error after execution
fig II -Compiler shows error after execution of the program.

iv) The compiler is faster than the interpreter.
v) The object code program produced by the compiler is permanently saved for future reference.
vi) If the compiler runs on a computer for which it produces the object code it is known as a ‘self or resident compiler’.
vii) If a compiler runs on a computer other than that for which it produces an object code, it is known as a ‘cross compiler.

Interpreter:

i) An interpreter is a program which translates one state of a high level language program into machine code and executes it at a time (see fig III).

interpreter translate high level language into machine level language to check line by line errors.
fig III An interpreter check line by line errors in the program

ii) The interpreter shows errors line by line (see fig III).
iii) An interpreter is a smaller program as compared to the compiler.
iv) The object code of the statement produced by an interpreter is not saved.
v) The presence of a source program is always required for the interpreter.
vi) If the instruction is used next time, it must be interpreted once again and translated into the machine code.
vii) An interpreter needs less memory space.
viii) It can also be used in a smaller system with limited memory space
.

-----------------------------------------------------------------------------------------------------------------------------

My latest post is here links below about the databases technology

What are the components of data model in [DBMS] Relational Database Management System?

What is stability of the distributed database management system?

In the distributed database model there are.... 👉 click here👈

There are five main components of data model... 👉 click here ðŸ‘ˆ

Comments

Popular posts from this blog

what are the function of the joystick and light pen?

What are the difference between input device and an offline data entry device?

What are the three main purpose of an operating system?