Results 1 to 4 of 4

Thread: what is the difference between machine code and byte code

  1. #1
    Join Date
    Dec 2008
    Posts
    70

    what is the difference between machine code and byte code

    what is the difference between machine code and byte code, I heard that Whenever we write any programing code and pass it on to the computer to execute that it convert it into some machine code, and forward the output to us, Is this only procedure does it does then what is role of byte code and machine code.

  2. #2
    Join Date
    Oct 2008
    Posts
    180

    Re: what is the difference between machine code and byte code

    Generally, "machine code" refers to the data that can be executed by a certain computer, while "bytecode" refers to data that can be executed by a virtual machine. JAVAC compiles the java file and converts the program in bytecode (machine independent). The virtual machine takes the bytecode and produces machine code appropriate for the actual machine it is running on.

  3. #3
    Join Date
    Oct 2008
    Posts
    167

    Re: what is the difference between machine code and byte code

    Byte Code is in the form of binary codes like 0/1 whether ASCII code is in the form of numeric digits which is assigned to characters and alphabets. Byte code is platform independent where ASCII codes are platform dependent. IT is different to a byte code interpreter.

    Consider the following C function:

    Code:
    int sum() {
       return 5 + 6;
    }
    This will be compiled directly machine code. The exact instructions on say x86 and ARM processors will be different.

  4. #4
    Join Date
    Mar 2008
    Posts
    258

    Re: what is the difference between machine code and byte code

    In a bytecode interpreter, the instruction format is usually designed for very fast "parsing" using shift and mask operators. Byte-code is a sort of intermediate code that is more abstract than machine code. It is often treated as a binary file containing an executable program much like an object module , which is a binary file containing a machine code produced by compilers.The interpreter, after "parsing" (I prefer "decoding") the instruction, immediately updates the state of the virtual machine and then begins decoding the next instruction. So after the bytecode gets processed in an interpreter, no remnant remains.

Similar Threads

  1. Replies: 15
    Last Post: 02-05-2014, 03:00 PM
  2. startup error code:0x80090006 ,,unable to locate activation code
    By Mr.Walter in forum Windows XP Support
    Replies: 3
    Last Post: 04-01-2012, 06:08 PM
  3. Running a batch file from a remote machine in a VB code
    By Radhu in forum Software Development
    Replies: 1
    Last Post: 14-10-2011, 04:54 PM
  4. What is difference between PIN2-PUK-PUK2 code
    By Mansi gala in forum Portable Devices
    Replies: 3
    Last Post: 15-09-2009, 01:06 PM
  5. Error code 43 unable to open Time Machine
    By Xan in forum Operating Systems
    Replies: 5
    Last Post: 03-04-2009, 11:05 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,132,179.43040 seconds with 16 queries