Compiling C Programs to generate executable files

The process of fixing high level language into machine level language is known as compilation. It is done by special computer code called compiler. The compilation method tests the program whether or not it contains syntax errors. If syntax errors area unit gift, compiler cannot compile the code. Once the compilation (conversion into object program) is completed then the program is joined with different object programs required for execution, thereby, leading to a binary program and so the program is loaded within the memory for the aim of execution and at last it's dead. Throughout the execution, the program could raise user for inputs and generates outputs when process the inputs. Hence, the sequence is:

compiling sequence of c programming

Debugging C Program

Debugging is the revelation and remedy of program blunders. Much subsequent to taking full mind in program plan and coding. A few mistakes may stay in the program on the grounds that the creator/software engineer may have never contemplated a specific case. These blunders may show up during assemblage or connecting or execution of the program. At the point when the mistake is showed up, the debugging is essential. 

Testing guarantees that program investigating and testing as confirmation and approval individually. Check guarantees that the program does what the software engineer expects to do. Approval guarantees that the program creates the right outcomes for a lot of test information. 

Along these lines, program testing and investigating are firmly related. The various instruments like test systems, rationale analyzers, breakpoints, stupor schedules, programming hinders can be utilized for powerful debugging process. For testing process, test information are provided to the program and yield is watched. In the event that the yield is true to form, the program can be viewed as mistake free. The example of genuine information can likewise be utilized for testing the program effectively.

Running a C Application Program

We will run our program (the executable file) in command prompt; this can be achieved by going to the directory of the executable file in command prompt, then type the name of the executable file without the extension.

For example, If my program file is stored in desktop as welcome.exe, I can type C:\Users\webtrickshome\Desktop>welcome and run the program.

C:\Users\webtrickshome\Desktop>welcome


0 Like 0 Dislike 0 Comment Share

Leave a comment