Bytecode is platform-independent, bytecodes compiled by a compiler running in windows will still run in linux/unix/mac. Machine code is platform-specific, if it is compiled in windows, it will run ONLY in windows.
2007-08-31 23:33:32
·
answer #1
·
answered by Anonymous
·
1⤊
0⤋
Java To Machine Code
2016-12-17 08:15:49
·
answer #2
·
answered by Anonymous
·
0⤊
0⤋
1)Bytecode is a binary representation of an executable program designed to be executed by a virtual machine rather than by dedicated hardware. Since it is processed by software, it is usually more abstract than machine code.
Machine code or machine language is a system of instructions and data directly executed by a computer's central processing unit. Machine code is the lowest-level of abstraction for representing a computer program.
Contents
2).It is a form of output code used by programming language implementations to reduce dependence on specific hardware (the same binary code can be executed across different platforms) and ease interpretation.
Instructions are patterns of bits with different patterns corresponding to different commands to the machine.
Every CPU model has its own machine code, or instruction set. Successor or derivative processor designs may completely include all the instructions of a predecessor and may add additional instructions.
3).Compared to source code (intended to be human-readable), bytecodes are less abstract, more compact, and more computer-centric. For example, bytecodes encode the results of semantic analysis such as the scope of each variable access (that is, whether the variable is global or local). Thus, performance is usually better than interpretation of source code.
A machine code instruction set may have all instructions of the same length, or may have variable-length instructions. How the patterns are organized depends largely on the specification of the machine code. Common to most is the division of one field (the opcode) which specifies the exact operation (for example "add"). Other fields may give the type of the operands, their location, or their value directly (operands contained in an instruction are called immediate).
4).A bytecode program is normally executed by parsing the instructions one at a time. This kind of bytecode interpreter is very portable. Some systems, called dynamic translators, or "just-in-time" (JIT) compilers, translate bytecode into machine language as necessary at runtime: this makes the virtual machine unportable, but doesn't lose the portability of the bytecode itself.
Instructions in machine lang are executed and patterns of bits with different patterns corresponding to different commands to the machine.
Every CPU model has its own machine code, or instruction set.
5 Conclusive :: BYTECODE is where program is portable hence strictly platform independent .
machine Code:: is machine specific.
hope this helps
Cheers:)
2007-09-01 00:38:46
·
answer #3
·
answered by Neeraj Yadav♥ 6
·
2⤊
0⤋
Bytecode is a portable form of executable code. Bytecode is platform independent and is translated into native code
(machine code) when the application runs.
Byte-code is a sort of intermediate code that is more abstract than machine code.
2007-09-01 07:39:33
·
answer #4
·
answered by Smutty 6
·
1⤊
0⤋
hi
bytecode of java is machine independent as the byte code will be ran in a virtual machine in operating system even the machine can be intel or motorola or other cpu processor.
the machine code it is depending on the CPU of machine wich run code. for example a code for Motorola can not be ran by Intel CPU and the inverse is also true.
bye for now.
2007-08-31 23:59:28
·
answer #5
·
answered by has_infoooo 3
·
0⤊
0⤋
Education is good, because it teaches you how to learn, how to discipline your mind. Knowledge for a Christian is knowing the word, knowing your God, His nature, His will, His outlook on things. Wisdom is looking at things from God's perspective and putting them into action. Knowledge is great, but too much of it can puff you up if you don't counteract it with fruit of the Spirit. Ever know a person who's very knowledgeable, but has no temperance and no love? Their knowledge is almost useless in the long run. But wisdom? You find that and your soul shall live, because when you find wisdom, you find the way God Himself looks at a situation. Proverbs 3: By wisdom the Lord laid the earth’s foundations, by understanding he set the heavens in place; by his knowledge the watery depths were divided, and the clouds let drop the dew.
2016-03-13 01:19:32
·
answer #6
·
answered by Anonymous
·
0⤊
0⤋
bytcode of java is an intermediate bytecode, it has to be translated 'down' to machinecode for a specific processor. the virtal machine of java will do that
2007-08-31 23:47:36
·
answer #7
·
answered by gjmb1960 7
·
0⤊
0⤋