Saturday 15 February 2014

C basic

In today's world we have lot of programming languages that we can say high level interface to interact with hardware

Hardware : device which understands instructions in there format called as instruction set comprising of set of opcodes and operands
Software : which uses this instruction  set to make our work done like Ms word makes document but we don't know how Many instructions it uses to create document write document and display document

Same language c where user wrote code which is in the format of c compiler but compiler follows the rules of underlying hardware because it's hardware which provides the instruction set

We write code in c like for loop but compiler generate the instructions corresponding to hardware if we write code on arm processor then compiler will follow the instruction set of Arm similarly for Intel

Means compiler provides a generic framework which is similar for every programmer but it takes burden on itself to convert the code into hardware specific code or I can say that into hardware specific instruction set

For loop code is same when user or programmer develop in c but it varies if the code is going to develop in assembly language means in hardware specific language  C basicCool.kundra@gmail.com