Question:
A/An _____________ file is a sequence of bytes organized into blocks that can be understood by the system linker.
_____________ फ़ााइल, सिस्टम के लिंंकर द्वारा समझने वाले ब्लॉकों में व्यवस्थित बाइट्स का अनुक्रम है।
Options:
- Object
- Source
- Executable
- Text
- ऑब्जेक्ट
- सोर्स
- निष्पादन
- टेक्स्ट
Correct Answer: a)
Explanation:
Detailed Explanation:
The correct answer is a) Object (ऑब्जेक्ट).
Object Files and System Linkers:
- An Object file is an intermediate file generated by a compiler or assembler from source code.
- It consists of sequences of bytes arranged into well-defined binary blocks/sections (e.g.,
.textfor machine instructions,.datafor initialized globals,.bssfor uninitialized variables, relocation tables, and symbol tables) formatted in standardized object formats such as ELF (Executable and Linkable Format) or COFF. - The Linker parses these blocks from multiple object files and static libraries, resolves cross-module memory addresses and unresolved symbols, and binds them together to form an executable file.
- A Source file is human-readable text; an Executable file is read by the OS loader; a Text file is plain unformatted character data.
विस्तृत व्याख्या:
सही उत्तर a) ऑब्जेक्ट है।
ऑब्जेक्ट फ़ाइल (Object File):
- एक ऑब्जेक्ट फ़ाइल कंपाइलर या असेंबलर द्वारा सोर्स कोड से तैयार की जाती है।
- यह बाइट्स का एक ऐसा अनुक्रम है जिसे विशिष्ट ब्लॉकों (जैसे
.text,.data, सिंबल टेबल) में व्यवस्थित किया जाता है, जिन्हें सिस्टम का लिंकर (Linker) समझ और संसाधित कर सकता है। - लिंकर इन ऑब्जेक्ट ब्लॉकों को एक साथ जोड़ता है, संदर्भों को हल करता है और अंतिम निष्पादन योग्य (Executable) फाइल तैयार करता है।
- सोर्स फाइल उच्च-स्तरीय कोड होता है जिसे लिंकर सीधे नहीं जोड़ सकता।