Skip to main content

Newer Post or latest post

what is data cable? Types of cables, uses of data cables, importance of data cable explained!

Introduction of data cables Data cable is an important part of computer network model . From smartphone to supercomputer connections and wide range network uses and network models. It helps in network model in different types of topology models also. But we discuss what exactly called a data cable? How it is working with network model? Why these data cables are so important? In this guide, I will provide some information about the definitions, types, uses of data cables on network model with easy explanation of data cable covered topics. What is data cable? [Definition] A data cable is a wire that can transfer the data from one to another computer system. It connects to the ports available on the computer system. The user can transfer the data from one computer to another data cable connection. If two computers are connected then:- In according to data cable male port:- Port 1:- the male port of data cable is used to receive the data from the sender computer. Port 2:- th...

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
.


Can a program be used to process expression based values?

Yes, it is correct that the program in any language that includes the expression or equation can process the input values based on the expression used in the program.
Such as:- an expression is a+b/c= d can be processed with the input values takes into the numerical values in the form of integer or float value for example:- a = 1.2, b = 1.3 and c = 2 then d = 1.25 as a float values comes into the program most used in the C language program to process these values into the compiler software on the computer.
Similarly, the other types of language uses different types of method to take input values in the program to provide the output value at the output interface of the program.


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

I hope you from this topic “ What is compiler? Give the difference between a compiler and an interpreter? ” and you can enjoy this informative post that i have published and provide you to the information technology or computer science related solution or questions/answers provided in the topic to study and happy learning 🙂
"Thank you for taking the time to read this post! I hope you found the information helpful and informative. Don't forget to stay tuned for more exciting updates and insightful content. Your support means the world to me!"



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

About the memory and its Classification of the computer Memory

"Hi everyone, I'm Rudra, a CS engineer and passionate blogger. Welcome to my post on [About the memory and its Classification of the computer Memory. ], where I'll share insights on Information Technology and Computer Science education. My goal is to provide helpful information and answer your questions. Feel free to ask me anything in the comments below. Let's dive into today's topic…🙂” What are the memories in the reference of computer system? What is Computer Memory?:- The memory is the essential for the computer to store the data, instruction and information. Without memory, computers are not be able to store data, instruction etc. The memory is an essential part of a computer system. It is require by the computer system to store information. Memory can be divided into the following two categories types: i) Primary or Main memory ii) Secondary Memory or Permanent memory In this figure I'll show the classification of the memory of computer s...

what are the function of the joystick and light pen?

Q 1. State the functions of a joystick and that of a light pen? Introduction to the joystick device, virtual or soft joystick tool, game controller, virtual or soft game controller and light pen topics are covered below here: Joystick What is the meaning of the joystick in computer? What is the joystick as a peripheral device in the computer system? What is main use of joystick in computer system peripheral devices? What is the purpose of the joystick in computer? What are the types of joysticks in the peripheral system for game purpose? What do you mean by analog joystick in peripheral system? What are the advantages of analog joystick device? What are the disadvantages or drawbacks of analog joystick device? What are the uses of joysticks? What are top 5 uses of joystick device in the computer system peripheral? Where is the use of joystick? How to connect the joystick for game in computer system? Can you connect the joystick to the laptop? Why do n...

how the track ball is differ from the mouse and joystick

What are the differences between trackball, mouse and joystick devices? The differences are according to the track ball device verse mouse and joystick Trackball The track ball is a pointing device which contains a ball over the device or above the device. The track ball is a statics device that cannot move from one place to another. The track ball gives you a stability to use the device without moving the whole and just move the ball or roll the on the device. It uses as input device that depends on finger and thumbs only to moves the ball. It is slower than mouse due to cause the dependency the finger and thumb to move the ball to track the path of the pointer. What is trackball used for? The trackball is an input device which is used to provide 2 dimensions to move the ball over the device the ball is attached to. The trackball is used to move the pointer of the operating system where the ball is moved according to the position of the 2 dimensions x and y axis on the...