______ converts a source code to object code.
______ सोर्स कोड को ऑब्जेक्ट कोड में बदलता है।
Explanation -
- Editor - An editor is a software program that allows users to create, modify, and save source code files. It provides a text-based interface for developers to write and edit code, and may include features such as syntax highlighting, code completion, and debugging tools. However, an editor does not convert the source code to object code.
- Loader - A loader is a software program that loads executable files into memory and prepares them for execution. It is responsible for resolving external references, allocating memory, and initializing variables. However, a loader does not convert the source code to object code.
- Linker - A linker is a software program that combines object files generated by a compiler into a single executable file. It resolves external references between different modules, performs symbol resolution, and generates relocation information. However, a linker does not convert the source code to object code.
- Compiler - A compiler is a software program that converts source code written in a high-level programming language into object code that can be executed by a computer. It performs various tasks such as syntax analysis, code optimization, and code generation. The output of a compiler is object code, which can then be linked and loaded to create an executable file. A compiler is an essential tool for software development, as it allows developers to write code in a high-level language and have it translated into machine code that can be executed by the computer.
व्याख्या -
• एडिटर - एडिटर एक सॉफ्टवेयर प्रोग्राम है जो यूज़र्स को सोर्स कोड फ़ाइलें बनाने, उनमें बदलाव करने और उन्हें सेव करने की सुविधा देता है। यह डेवलपर्स को कोड लिखने और एडिट करने के लिए टेक्स्ट-बेस्ड इंटरफ़ेस देता है, और इसमें सिंटैक्स हाइलाइटिंग, कोड पूरा करने (कोड कंप्लीशन) और डीबगिंग टूल्स जैसी सुविधाएँ हो सकती हैं। हालाँकि, एडिटर सोर्स कोड को ऑब्जेक्ट कोड में नहीं बदलता है।
• लोडर - लोडर एक सॉफ्टवेयर प्रोग्राम है जो एग्जीक्यूटेबल फ़ाइलों को मेमोरी में लोड करता है और उन्हें एग्जीक्यूशन (चलने) के लिए तैयार करता है। यह बाहरी रेफरेंस को हल करने, मेमोरी आवंटित करने और वेरिएबल को इनिशियलाइज़ करने का काम करता है। हालाँकि, लोडर सोर्स कोड को ऑब्जेक्ट कोड में नहीं बदलता है।
• लिंकर - लिंकर एक सॉफ्टवेयर प्रोग्राम है जो कंपाइलर द्वारा बनाई गई ऑब्जेक्ट फ़ाइलों को एक ही एग्जीक्यूटेबल फ़ाइल में जोड़ता है। यह अलग-अलग मॉड्यूल के बीच बाहरी रेफरेंस को हल करता है, सिंबल रिज़ॉल्यूशन करता है और रीलोकेशन की जानकारी बनाता है। हालाँकि, लिंकर सोर्स कोड को ऑब्जेक्ट कोड में नहीं बदलता है।
• कंपाइलर - कंपाइलर एक सॉफ्टवेयर प्रोग्राम है जो हाई-लेवल प्रोग्रामिंग भाषा में लिखे गए सोर्स कोड को ऑब्जेक्ट कोड में बदलता है, जिसे कंप्यूटर द्वारा चलाया (एग्जीक्यूट किया) जा सकता है। यह सिंटैक्स एनालिसिस, कोड ऑप्टिमाइज़ेशन और कोड जनरेशन जैसे कई काम करता है। कंपाइलर का आउटपुट ऑब्जेक्ट कोड होता है, जिसे बाद में लिंक और लोड करके एग्जीक्यूटेबल फ़ाइल बनाई जा सकती है। कंपाइलर सॉफ्टवेयर डेवलपमेंट के लिए एक ज़रूरी टूल है, क्योंकि यह डेवलपर्स को हाई-लेवल भाषा में कोड लिखने और उसे मशीन कोड में बदलने की सुविधा देता है, जिसे कंप्यूटर द्वारा चलाया जा सकता है।
Exam Preparation Simplified
Trusted by 8.1 Crore+ Students