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 होती हैं:

  • .o in Linux

  • .obj in 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.

ऑब्जेक्ट फाइल linking process की सहायता से source code को executable program में बदलने में सहायता करती हैं।

Comments

Popular posts from this blog

C Language Topics in Hindi and English

Top High-Paying Tech Skills to Learn in 2025

Advanced C Programming Language IMP Questions for BSc/BA/BCom/BCA/BE/BTech/MSc/MCA (CS/IT) Students