• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

which is the best book ?

 
Ranch Hand
Posts: 692
Eclipse IDE Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
can any one tell me which is the best books that explains things like
how source code is converted into native machine code ?
and other interesting things about compilers, interpreters and all
 
Bartender
Posts: 10780
71
Hibernate Eclipse IDE Ubuntu
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

naved momin wrote:can any one tell me which is the best books that explains things like
how source code is converted into native machine code ?


In Java's case, it isn't (at least not unless you use something like GCJ); it's converted to bytecode, which is what you get in your .class files. A second, platform-dependent stage (the java command) converts the bytecode to machine code; and what it does will differ depending on the OS (and probably the JVM) you're running on. The JVM Specification will explain some of it, but to find out exactly what's going on I suspect you'll need to find a reference for the specific bytecode converter you're using. It's all pretty dry stuff though; and I'm not sure what you think you're going to achieve by doing it.

and other interesting things about compilers, interpreters and all


Google is your friend; and prepare for a lot of study.

Winston
 
naved momin
Ranch Hand
Posts: 692
Eclipse IDE Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Winston Gutkowski wrote:

naved momin wrote:can any one tell me which is the best books that explains things like
how source code is converted into native machine code ?


In Java's case, it isn't (at least not unless you use something like GCJ); it's converted to bytecode, which is what you get in your .class files. A second, platform-dependent stage (the java command) converts the bytecode to machine code; and what it does will differ depending on the OS (and probably the JVM) you're running on. The JVM Specification will explain some of it, but to find out exactly what's going on I suspect you'll need to find a reference for the specific bytecode converter you're using. It's all pretty dry stuff though; and I'm not sure what you think you're going to achieve by doing it.

and other interesting things about compilers, interpreters and all


Google is your friend; and prepare for a lot of study.

Winston


i have a deep interest in system softwares
and i wanted to implement compilers and other stuff
but i get stuck by one thing that
how i can convert the source code to native machine code ?
so i m developing a compiler so that compiler will differ from machine to machine because every machine is different and there instruction set
thats why i wanted to explore such kind of stuff
google ...unable to help me this time because most of the college in entire world didnt teach this stuff
 
What are you doing? You are supposed to be reading this tiny ad!
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic