Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

difference between codes???

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
HI,
Can anyone tell the difference between the following codes in detail.
bytecode,opcode & machine code.
regards,
elavazhagan
 
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'll give it a shot:-
Machine code is basically binary. Your average 001110101 etc.. that instructs the machine what to do. If you had the time and patience you could write this...however, I think it would take a ***LONG*** time for you to do anything useful...It is the *only* language the computer understands...
Opcode is the next level up. It is the:-
MOV #F, 12
NEQ A0, D1
BNE AA, #F
That you may see around. You write this using a text editor, and get an assembler to convert this into machine code (the 0011001) for the computer to do something..It is easier to write in assembler (as it's often referred to) than in machine code
Bytecode are machine-independent implementations of a high-level language (Java springs to mind here) that can be transferred from one machine to another. The JVM converts the byte-code into machine-code for the computer to do something...
David
 
Ranch Hand
Posts: 3143
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
elavazhagan s your name does not comply to the javaranch naming rules out lined here. Please register again with a valid name.
Thank you!
 
Nothing up my sleeve ... and ... presto! A tiny ad:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic