answersLogoWhite

0

What is source file and Object file?

Updated: 8/20/2019
User Avatar

Wiki User

12y ago

Best Answer

A "source file" holds the instructions for a program in text, e.g. computer commands like printf(). When the source file is processed by a computer language compiler object files are created. These will then be linked together by another special computer program called a linker to create an executable program file. Think of the source as being text for humans and the object as being computer files that are generally unreadable.

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is source file and Object file?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Why embedded object document requires more size than linked object?

Because a linked object is created and stored in a separate source file and then it is linked to the destination file, while an embedded object is created in a separate source file but then it is inserted into the destination file , becoming the part of that file.


Why embedded object documents requires more size than linked object?

Because a linked object is created and stored in a separate source file and then it is linked to the destination file, while an embedded object is created in a separate source file but then it is inserted into the destination file , becoming the part of that file.


Which type of object is stored only in its source file?

embedded object


When the object is linked from the source to the destination file where can you update the information?

You update the source.


Does linkes combines library files with SOURCE FILE?

No. Linkers combine object files and library files, which are collections of object files. All source files need to be compiled to object files.


What is responsible for producing the object file during the transformation of source code to an executable?

Compiler.


What are the file created after c file is save?

Having saved the source file (*.C), you can compile it into an object module (*.OBJ), then link an executable program (*.EXE)


How will you recover a file if it is OBJ file and you want to change it to CPP file?

You cannot. Object code files are machine code files that have yet to be linked. There is no way to convert object code back to its original source code.


Object linking and embedding OLE refers to the ability to use data from another file called the?

source


How do you link one C source file in another?

Linking means combining object modules and libraries into an executable file. The details are platform-dependent.


What is stored in source file object file and an executable file?

A source file (*.c file) contains the source code for (part of) a computer program written in a high-level language. All the user-defined types used by the source file must be forward declared before the first point of usage. If the source file uses types that also need to be available to other source files, those type declarations can be placed in a corresponding header file which this and other source files can include using the #include compiler directive. This ensures all type declarations are declared consistently across all the source files that use them.Essentially, the #include directive instructs the compiler to import the code from the named header file into the source code at the point it was declared, just as if the programmer had copy/pasted that code by hand. This is done by the preprocessor which processes all the compiler directives (lines beginning with a # symbol) and strips out all user-defined comments from the source file, including its headers. Note that the source file is not physically changed by the preprocessor, it simply creates a new source file, known as a translation unit. After preprocessing, the compiler only sees the translation unit, not the source file. A translation unit must be entirely self-contained and must not depend on any names in any other translation unit, other than those that are explicitly declared with external linkage.The compiler processes each translation unit in turn to create an object file, which is essentially the machine code translation of the source code. The machine code is only partially complete at this stage because all offset memory addresses cannot be finalised until all the object files are created. These addresses are symbolised and placed in a table at the end of the object file, along with external linkage information required by the linker.Once all the object files are created, the linker takes over, linking the object files together to produce a machine code executable. All offset addresses are finalised at this stage. Note that the linker is the only program that "sees" the entire program.


Types of compilation in c plus plus?

There is only one type: the one that creates an object module from a source file.