Search...

Monday, December 15, 2014

Vitual Memory? Cache Memory? Compiler & Interpreter? Low level language & High level language with difference between them?

Virtual Memory: Virtual Memory is a kind of memory which is used by the OS apart from RAM. It does not require permanent memory storage it just uses the memory virtually or temporarily. it is a reserved space created by windows to dump data in & out. it perform more or less the same function as our physical memory.


VM is a kind of memory which is used by the OS apart from RAM. It does not require permanent memory storage it just uses the memory virtually or temporarily. 

Virtual means not actual. It is a reserved space created by windows to dump data in & out . it perform more or less the same function as our physical memory

To adjust the Virtual memory i s more or less the same for XP, Vista and Win7.

Right click the (My) Computer Icon


select Properties


select Advanced System Setting (Advanced Options in XP)


click the Settings button in the Performance area


click the Advanced tab


in the Virtual Memory section click the Change button


you need to select the Custom Size radio button option to activate the boxes to be able to make changes required.



Cache Memory:  Cache memory is the memory which connects RAM and manages its speed. Even if video card doesn't exist cache memory helps u play many games. Cache memory is the extremely fast memory which can be accessed by CPU before the blink of an eye. More cache means you computer will run faster. 


Cache memory is random access memory (RAM) that a computer can access more quickly than it can access regular RAM. As the microprocessor processes data, it looks first in the cache memory and if it finds the data there (from a previous reading of data), it does not have to do the more time-consuming reading of data from larger memory  in more simple, if you open any application the processor wait for the ram's memory to process it. It is not given instantly it takes some seconds. 


Processors cache memory is used instantly and then the ram's memory is used afterwards thus making it fast to open the programs. 


Hence the L2 cache is one of the most important thing to look for.


Compiler & Interpreter: A Compiler and Interpreter both carry out the same purpose ? convert a high level language (like C, Java) instructions into the binary form which is understandable by computer hardware.


 They are the software used to execute the high level programs and codes to perform various tasks. Specific compilers/interpreters are designed for different high level languages. However both compiler and interpreter have the same objective but they differ in the way they accomplish their task i.e. convert high level language into machine language.


 A compiler is a piece of code that translates the high level language into machine language. When a user writes a code in a high level language such as Java and wants it to execute, a specific compiler which is designed for Java is used before it will be executed. The compiler scans the entire program first and then translates it into machine code which will be executed by the computer processor & perform the task.


 Interpreters are not much different than compilers. Each part of the code is interpreted and then execute separately in a sequence and an error is found in a part of the code it will stop the interpretation of the code without translating the next set of the codes. 


Interpret means a program that can analyse and execute a program line by line and carries out the specified actions in sequence. , an assembler or compiler completely translates a program written in a high-level language (the source program) into a machine-language program (the object program) for later execution.







Low Level language & High Level language:  

High level language can be understood by the user using the computer. 

Low level language can be under stood by the computer only.



No comments:

Post a Comment