Compiling




Document: Software Engineering 1: Course Notes

next The Message Window
up Hints
previous IDE Edit Windows

Compiling

Once the program text is loaded in an edit window you can compile it: that is, translate the "high level" statements of the C language into sequences of the much simpler, "low level" instructions which the microprocessor in the PC can directly carry out. This so-called object code will normally be stored in a file with the same name as the source file, but the extension .OBJ. In our case then, the object file will be called WOTCOST.OBJ.

Note that you will not need to copy object file(s) onto your diskettes for backup. They can always be recreated simply by recompiling again.

To compile you must first make the edit window (containing the C program text) active. The active window in the IDE is identified by having a double line border. Initially this probably will not be a problem: the edit window will be the only window you have opened in the IDE. But later on you will have several windows open in the IDE; then it is important to remember that compiling will only work with an edit window selected.

To compile, drop down the Compile menu, and select the Compile to OBJ menu item. The compilation will then be attempted. It is quite likely that the compiler will issue several warning and/or error messages. These will be displayed in a separate Message window.




Document: Software Engineering 1: Course Notes

next The Message Window
up Hints
previous IDE Edit Windows



McMullin@ugmail.eeng.dcu.ie
Wed Mar 15 10:20:49 GMT 1995