What is the difference between debugging and compiling
It is possible to use a compiler to accomplish this task. A compiler is capable of translating the source code from a high-level programming language to a low-level machine language to create an executable program. A compiler is a complex software. Therefore, it is a difficult task to design and develop a compiler. Furthermore, it performs a variety of tasks. Some of them are pre-processing, lexical analysis, parsing, semantic analysis, transforming the input programs into an intermediate representation.
It also performs code optimization and code generation. Additionally, a compiler converts the entire source code into equivalent machine code at once.
A debugger is a software or a tool that allows testing and debugging other programs target programs. However, this approach is slower than executing the code directly on the same processor. Moreover, some debuggers provide two modes of operations: full or partial simulation. The execution flow of the program stops when there is a programming bug.
So if the compiler finds a problem in compiling then the debugger helps in removing it to complete the compilation. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow.
Learn more. What is the difference between debug and compile? Ask Question. Asked 11 years, 7 months ago. Active 3 years, 3 months ago. Viewed 19k times. How do I compile an application without debugging in Visual Studio?
Peter Mortensen 29k 21 21 gold badges 97 97 silver badges bronze badges. Vaibhav Jain Vaibhav Jain Add a comment. Active Oldest Votes. Change Language. Related Articles. Table of Contents. Save Article. Improve Article. Like Article. Next SQL software and query optimization tools. Recommended Articles. Article Contributed By :.
0コメント