Hello friends!
इस पोस्ट में Compiler, Assembler और Interpreter क्या हैं? के बारे में पूरी जानकारी आसान हिंदी भाषा में समझाई गई है।
यदि आप इस टॉपिक के बारे में जानना चाहते हैं, तो इस पोस्ट को पूरा जरूर पढ़ें।
Table of Contents
परिचय (Introduction)
Programming में source code को machine code में बदलने के लिए Compiler, Assembler और Interpreter का उपयोग किया जाता है। यह तीनों tools programmer को program execute करने में मदद करते हैं, लेकिन इनके काम करने का तरीका अलग होता है।
Compiler क्या है?
Compiler एक program है जो पूरे source code को एक बार में machine code में convert करता है। इसके बाद executable file run होती है।

Examples:
- C Compiler
- C++ Compiler
Compiler की विशेषताएँ
- Full program translation
- High execution speed
- Error reporting after compilation
Assembler क्या है?
Assembler assembly language (low-level language) को machine code में translate करता है। Assembly code human-readable और machine-specific instruction का combination होता है।

Examples:
- MASM (Microsoft Assembler)
- NASM (Netwide Assembler)
Assembler की विशेषताएँ
- Assembly से machine code conversion
- Low-level programming
- Hardware dependent
Interpreter क्या है?
Interpreter source code को line-by-line machine code में convert करके run करता है। Errors execution के दौरान दिखते हैं।

Examples:
- Python Interpreter
- JavaScript Interpreter
Interpreter की विशेषताएँ
- Line-by-line execution
- Slower execution speed
- Immediate error reporting
Compiler vs Interpreter vs Assembler
| Basis | Compiler | Interpreter | Assembler |
|---|---|---|---|
| Translation | Full program | Line-by-line | Assembly to machine |
| Execution | After compilation | During execution | After assembly |
| Speed | Fast | Slow | Fast |
| Error detection | After compilation | Immediately | After assembly |
| Example | C, C++ | Python, JavaScript | MASM, NASM |
Real-Life Example
- Compiler: Book translated completely before reading
- Interpreter: Story read line by line
- Assembler: Recipe converted from instructions to actions
FAQs – Compiler, Assembler, Interpreter
Compiler क्या करता है?
Entire program को machine code में convert करता है।
Interpreter और Compiler में फर्क क्या है?
Interpreter line-by-line execute करता है, compiler एक बार में।
Assembler किसके लिए उपयोग होता है?
Assembly language programs को machine code में convert करने के लिए।
निष्कर्ष (Conclusion)
Compiler, Assembler और Interpreter programming और OS के core tools हैं। इनके सही उपयोग से programmer अपने code को efficiently run कर सकता है और error management आसान हो जाता है।
👉 Next Topic: Real Time Operating System (RTOS) in Hindi & Types