Machine code depends on machine or OS?

Discussion in 'Java' started by Garima12345, Feb 7, 2012.

  1. Garima12345

    Garima12345 New Member

    Joined:
    Feb 2, 2012
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    0
    Machine code depends on hardware or OS on that hardware?

    There is one computer. Initially it has Win Xp installed in it. The user wanted to run a java program so he downloaded JRE for Win Xp.

    Now the user changes the operating system to Win 7 ( but The hardware & the ROM chipset, motherboard etc are all same only the OS is different )

    Now he needs to download JRE for Win 7 to run that java program.... WHY??

    Does it mean machine code depends on OS?
    I'hv recently learnt that conversion from bytecode to machine code is done by reading the contents of ROM by the JVM. So if the m/c code is generated by seeing ROM,, Why there is different JRE for different OS for the same computer?

    Pls help..
     
  2. Garima12345

    Garima12345 New Member

    Joined:
    Feb 2, 2012
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    0
    Guyz pls help me
     
  3. aryan123

    aryan123 New Member

    Joined:
    Jan 9, 2011
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    0
    Machine code depends on both hardware & operating system.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice