object file

English

Etymology

    From object + file.

    Noun

    object file (plural object files)

    1. (software compilation) A file produced by a compiler containing executable code and program data; a file housing object code.
      • 1988, Brian Kernighan, Dennis Ritchie, The C Programming Language‎[1], Prentice Hall, →ISBN:
        Suppose that the three functions are stored in three files called main.c, qetline.c, and strindex.c. Then the command cc main.c getline.c strindex.c compiles the three files, placing the resulting object code in files main.o, qetline.o, and strindex.0, then loads them all into an executable file called a.out. If there is an error, say in main.c, that file can be recompiled by itself and the result loaded with the previous object files, with the command cc main.c qetline.o strindex.o.
        The cc command uses the ".c" versus ".o" naming convention to distinguish source files from object files.