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