answersLogoWhite

0


Best Answer

In simplistic terms, code generation is dependent upon machines because it is a computer-based process. A computer is in fact a type of machine. Without the computer, a code can't be generated.

User Avatar

Wiki User

10y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Why is code generation machine dependent?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

Is the First Generation Language machine dependent?

Yes. Both first and second generation languages are machine-dependent. The first generation of languages were machine code, while the second were assembly languages. Non-machine dependency came about with the advent of the third-generation of languages, all the high-level languages.


What are example of second generation programming language?

Machine code is first generation. Low-level, machine-dependent, symbolic languages such as assembly language are second generation. All high-level, machine-independent languages are third generation. Fourth and fifth generation don't actually have any meaning since there is no "standard" to define these terms, although they are often used to classify specific types of third-generation languages.


Is the size of an integer compiler dependent or machine dependent?

The size of an integer is compiler-dependant. The compiler itself is machine-dependant so it could be argued they are in fact machine-dependent, however we don't write code to suit the machine, we write code to suit the compiler, even when the code is machine-dependent.


Machine language is what generation language?

Machine language is a first generation language.


When is a computer language called machine dependent?

When the code is targeted towards a specific machine architecture. Machine code is entirely machine-dependent, as is the low-level assembly language used to produce that machine code. High-level languages are not machine dependant, however source code can still be targeted towards a specific architecture or platform. Such code is non-portable, however many high-level languages provide methods to filter machine-dependant or platform-dependant code such that the same source code can be compiled on different machines and platforms.

Related questions

What is machine dependent phase in compiler?

1. Target code generation 2. Machine Specific code improvement


Is the First Generation Language machine dependent?

Yes. Both first and second generation languages are machine-dependent. The first generation of languages were machine code, while the second were assembly languages. Non-machine dependency came about with the advent of the third-generation of languages, all the high-level languages.


What are example of second generation programming language?

Machine code is first generation. Low-level, machine-dependent, symbolic languages such as assembly language are second generation. All high-level, machine-independent languages are third generation. Fourth and fifth generation don't actually have any meaning since there is no "standard" to define these terms, although they are often used to classify specific types of third-generation languages.


Is the size of an integer compiler dependent or machine dependent?

The size of an integer is compiler-dependant. The compiler itself is machine-dependant so it could be argued they are in fact machine-dependent, however we don't write code to suit the machine, we write code to suit the compiler, even when the code is machine-dependent.


Is the machine language machine dependent?

Machine code is machine-dependant because every machine architecture has its own version of machine code. The code is non-portable because only the machine for which the code was intended will be able to understand it.


Machine language is what generation language?

Machine language is a first generation language.


What is the main limitation for machine code and assembler language?

Platform-dependent.


When is a computer language called machine dependent?

When the code is targeted towards a specific machine architecture. Machine code is entirely machine-dependent, as is the low-level assembly language used to produce that machine code. High-level languages are not machine dependant, however source code can still be targeted towards a specific architecture or platform. Such code is non-portable, however many high-level languages provide methods to filter machine-dependant or platform-dependant code such that the same source code can be compiled on different machines and platforms.


What is this native code and what is difference between native code and machine code?

They are the same thing. Every machine type has its own version of machine code, the native language of the machine (native machine code). All high-level code must be converted to native machine code before it can execute. Machine code is machine dependent but high-level code is generally machine-independent, thus the same source code can generally be converted to suit any type of machine using a suitable compiler or interpreter.


Bytecode is machine dependent or independent?

Because machine code only understsnd by computer in form of 0,1 and byte code not machine code and store in .class of java library it is at the 2nd stage of conversion and the machine code at the final stage and end stage so byte code under stand by any machine by the java library not convert into machine code i.e understand by machine kuldeep singh ssimt


Is the C language machine dependent or not?

Machine-dependent (generally called "platform-dependent")


Why is assembly language known as a low level language?

The level of a language is an indication of how abstract it is compared to the machine code it produces. The higher the level, the further it is from the machine and thus the more abstract it is. Assembly language has a near 1:1 translation to machine code with very little in the way of abstraction, thus it is a low-level language.