Successful Compilation

When all errors in the source code are corrected, the compiler successfully completes the compilation by producing an object code record. The object code record is stored in a file whose name is made up of the source filename suffixed with .O (sourcename.O). The object code record ID is the same as the source file record ID (program name).

For example, if source code record MAIN is stored in a file called BP, executing the following compile statement:

>BASIC BP MAIN

compiles the source code in record MAIN in file BP, producing object code that is stored in record MAIN in file BP.O . The compiler creates the object code file if it does not exist.