answersLogoWhite

0


Best Answer

The resulting programs are more efficient, use less processor cycles and memory. Because michine code is the most basic form of language that a processor can understand. It consists of 1's and 0's. It needs no interpreter to interpret to the processor and therefore is the fastest way to tell a processor which commands to run.

User Avatar

Wiki User

16y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Why write programs in machine code?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Why can't we use English in programming?

Computers don't understand English. All programs must be written in machine code -- the native language of the machine. Programs written in high-level languages must be converted to machine code in order to be executed. We can write machine code programs to perform the conversion for us. These programs are called compilers or interpreters.


American standard for information interchange ASCII?

ASCII is code in which computer programs are written . it is the computer machine language.if write a program in any computer language thaen it will be converted in this code.


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.


What is low level programing languages?

The programs written in Machine codes (like hexadecimal codes) are the Low level programs. These are understood only by the Microprocessor they are written for and written on. Whereas the High level programs are written in English like languages which are human redable.


What is Disadvantage of high level language?

The only real disadvantage of high level languages is that they must be converted to machine code in order to execute. However, machine code is extremely difficult to work with; we use high level languages because it makes it easier to both write and maintain programs.


Which software runs a specific program?

It depends on which specific program you have in mind. Native machine code programs do not require any software to run; the program was converted into the machine's native language during compilation and does not require further translation. However, machine code is non-portable. To execute the same program on another platform the source code must be recompiled for that platform. Conditional compilation directives ensure that the correct machine-specific source code is compiled. Byte code programs, however, do require software to execute. Byte code is not native machine code so must be converted to native machine code while it is executing. This is achieved using a runtime program known as an interpreter. Java is a typical example. Java source code is compiled to Java byte code suitable for interpretation by the Java virtual machine (JVM). Thus a JVM is required to execute Java programs. Unlike native machine code, byte code is portable; the same byte code will execute upon any machine that has a suitable interpreter available.


Which software runs specific program.?

It depends on which specific program you have in mind. Native machine code programs do not require any software to run; the program was converted into the machine's native language during compilation and does not require further translation. However, machine code is non-portable. To execute the same program on another platform the source code must be recompiled for that platform. Conditional compilation directives ensure that the correct machine-specific source code is compiled. Byte code programs, however, do require software to execute. Byte code is not native machine code so must be converted to native machine code while it is executing. This is achieved using a runtime program known as an interpreter. Java is a typical example. Java source code is compiled to Java byte code suitable for interpretation by the Java virtual machine (JVM). Thus a JVM is required to execute Java programs. Unlike native machine code, byte code is portable; the same byte code will execute upon any machine that has a suitable interpreter available.


What is the aim of computer languages?

The aim of all computer languages is to make it easier for humans to create and modify machine code, the native language of the machine.


Computer is a programs written for a computer?

Computer is a machine which solves complex problems. Programs are soft wares or you can say that its a code used by they computers


How do you change source code into machine code?

A program called a compiler, or sometimes an assembler (depending on the programming language) does this for you. You write the source code, then invoke the program that will convert this into machine language.


What translation programs converts assembly language programs to object program?

The only translation program that converts assembly language to machine code is an assembler.


What kinds of differences are compiling and running Java vs C programs?

Although Java is often described as a compiled language, it is a language that is both compiled and interpreted. Unlike C++ which typically compiles to native machine code, Java compiles to Java byte code, the native language of the Java virtual machine. The key difference here is that the Java virtual machine is not machine dependent, thus the same byte code can be executed upon any physical machine with a suitable Java virtual machine implementation; it is highly portable. Machine code can only be executed upon the machine architecture for which it was compiled. To support other architectures, the source code must be recompiled for those architectures. In terms of execution, native machine code requires no further translation and can be executed as soon as the code is compiled successfully (including any and all shared libraries required by the executable). Java byte code requires that the Java virtual machine be memory-resident during execution as the byte code must be interpreted to produce native machine code while the byte code is executing within the virtual machine. In terms of memory consumption, C++ programs require no additional memory over and above the program's requirements. Java programs require additional memory for the Java virtual machine runtime. Java programs also consume additional memory to assist in memory management, such as automatic garbage collection. C++ programs manage their own memory using resource handles and smart pointers; the use of a garbage collector is optional. In terms of performance, C++ programs execute many times more quickly than equivalent Java programs due to Java's need to interpret the byte code.