Processor: a part of computer system that is user to process instruction aka CPU
Compiler: Converts high level language code to assembly level language code
Assembler: converts these assembly level language code to object code that is executable file that needs to be linked with libraries and loaded into memory for execution
Linker : links object code with library routines and all external references are resolved
Loader : loads the executable code into memory for execution
There is no definite term "assembler" in compilation process. It is more like "compiler" and "linker". Assembler usually refers to a compiler of machine language: http://en.wikipedia.org/wiki/Assembly_language So you probably mean difference between compiler and linker? Lets say you have a 3 module program, and it uses a 3rd party library, then the compiler will just compile each of your modules (separately) into binary pieces, which have "unclosed" references to abovementioned library and other 2 modules. After u have 3 binary pieces comes in "linker" it attaches those "unclosed" (or unlinked) links to other modules and library, therefore giving you working program file (.exe file for example). Really hard to say that without a schema or something like that:) Hope this answer helped you.
a compiler translates an entire program and then executes it while an interpreter translates and executes one line of a program at time
There is only one computer language that doesn't require a compiler - machine code. This is the language that the computer processor understands directly without having to be interpreted first. However it is difficult to understand and it is more usual for people to use assembly language.
A compiler and a linker.
When the compiler says "code has no effect", it is saying that it does not matter if the code is executed or not - the end result will be the same. The compiler, if in optimizing mode, can and should delete the code. An example of code that has no effect is a = a;
Compiler is used to convert a language readable in user domain into the tasks which is understood by the machine. example: C++ compiler compiles program written in a langauge understood by user which compiles this to a task which can be executed by a computer's processor.
Compiler is used to convert a language readable in user domain into the tasks which is understood by the machine. example: C++ compiler compiles program written in a langauge understood by user which compiles this to a task which can be executed by a computer's processor.
There is no definite term "assembler" in compilation process. It is more like "compiler" and "linker". Assembler usually refers to a compiler of machine language: http://en.wikipedia.org/wiki/Assembly_language So you probably mean difference between compiler and linker? Lets say you have a 3 module program, and it uses a 3rd party library, then the compiler will just compile each of your modules (separately) into binary pieces, which have "unclosed" references to abovementioned library and other 2 modules. After u have 3 binary pieces comes in "linker" it attaches those "unclosed" (or unlinked) links to other modules and library, therefore giving you working program file (.exe file for example). Really hard to say that without a schema or something like that:) Hope this answer helped you.
The task that the Assembler needs to be perform among of these are....- the assembler takes its source code as assembly language program.- making direct hardware access for device driver.- produce machine code.
An assembler takes abbreviated names for computer instructions, like "MOV", and turns them into the numeric bytes which, when loaded into memory, can be executed by the CPU.
memory
its memory.
Machine language
a compiler translates an entire program and then executes it while an interpreter translates and executes one line of a program at time
Opcodes are generated during the compilation process of programming languages. They are the machine-level instructions that represent the operations to be performed by the computer's processor. The compiler translates high-level code into a series of opcodes that can be understood and executed by the hardware.
A compiler or interpreter converts high-level programming languages into machine code that can be understood and executed by the computer's hardware.
There is only one computer language that doesn't require a compiler - machine code. This is the language that the computer processor understands directly without having to be interpreted first. However it is difficult to understand and it is more usual for people to use assembly language.