Lecture 2
Lecture 2
•
•
•
•
Java Program
Run below commands to generate all files:
gcc hello.c --save-temps
•This file contains the expanded source code. Any #include directives (like #include
<stdio.h>) are expanded, and the entire content of the included headers is visible here.
•You can open this file with any text editor to inspect the expanded code.
•This file contains assembly instructions, which are architecture-specific low-level
instructions.
•These assembly instructions are generated by the compiler and can be examined to see
the underlying low-level operations.
•
•
•
•
•
•
•
•
•
•
•
Java Bytecode:
• Compiled once, run anywhere.
• .class file is generated after compilation.