What is the Difference Between Compiling and Debugging?
Debugging:-Laptop programmers, like all people else, will not be excellent. This implies the applications they write generally have small errors, referred to as “bugs,” in them. These bugs could be minor, resembling not recognizing person enter, or extra critical, resembling a reminiscence leak that crashes this system. Earlier than releasing their software program to the general public, programmers “debug” their applications, eliminating as many errors as attainable. This debugging course of typically takes a very long time, as fixing some errors could introduce others.
Compiling:-When programmers create software program applications, they first write this system in supply code, which is written in a particular programming language, resembling C or Java. These supply code recordsdata are saved in a text-based, human-readable format, which could be opened and edited by programmers. Nevertheless, the supply code can’t be run straight by the pc. To ensure that the code to be understood by the pc’s CPU, it have to be compiled into an executable program.
Most software program improvement applications embrace a compiler, which compiles supply code recordsdata into machine code. This code, generally known as object code, could be executed straight by the pc’s processor. Subsequently, the ensuing software is also known as an executable file. Home windows executable recordsdata have a .EXE file extension, whereas Mac OS X applications have .APP extension, which is commonly hidden.
So the conclusion is a compiled program could have errors or bugs however not a efficiently debugged program can’t have any.
So for an ideal program you must debug and compile a program