Object Files in C Programming सी प्रोग्रामिंग में ऑब्जेक्ट फाइल्स
An Object File is an intermediate file generated after compilation of a C program. It contains machine-level code but is not directly executable.
एक ऑब्जेक्ट फाइल एक intermediate file होती है जो C program के compilation के बाद बनती है। इसमें machine-level code होता है लेकिन यह सीधे execute नहीं होती।
Object files usually have extensions: ऑब्जेक्ट फाइल्स की सामान्य extensions होती हैं:
.oin Linux.objin Windows
Compilation Process
Source Code → Compiler → Object File → Linker → Executable File
GCC Command to Generate Object File ऑब्जेक्ट फाइल बनाने की GCC Command
gcc -c program.c
This command creates:
program.o
Advantages लाभ
Faster compilation
Modular programming
Reusable code
Object files help convert source code into executable programs efficiently using the linking process.
Comments
Post a Comment