Social Sciences, asked by kopal9970, 1 year ago

Difference between source file and object file

Answers

Answered by modi67
1
Source file is easily understand by human .

Source files are essentially the files a designer uses to generate their designs with before exporting them as a jpg/png. Source files are required to be provided to the consumer to allow them to print scalable versions of the design or edit them as they see fit. A file that contains important or original data that is the starting point for a system of publishing or other processing. Source file must include all types and all objects of declaration that are referenced, which is the meaning of the

undeclared reference

compiler error. It only requires complete declarations to succeed; definition are handled at a presently stage in the build process.

Example- The text files of this index, which are continuously edited, become the source files for development each cycle. They are the starting and source point to generate an XML master that is used to create XML, HTML, Android versions and Win

(2)Object file is the intermediate form between executable and source .

Objective file is the file containing object code, means reload format machine code that is usually not directly executable. This file may also work like a shared library.

Objective files are three types - 
 (1) Relocatable file (2) Executable file (3) Shared object file

Object files are binary representation of programs proposed to be executed directly on a processor. Programs that require other abstract machines, such as shell scripts, are excluded

Answered by sadiaanam
0

Answer:

When a programme is being compiled and run, there are two distinct phases: source files and object files.

Source File

The high-level, understandable code created by a programmer in a language like C, C++, or Java is stored in a source file. It serves as the compiler's input, allowing it to read the source code and produce an object file.

Object File

The output of the compiler following the processing of the source code is an object file, also referred to as an object module. It comprises machine-readable code, also referred to as object code, which is produced by the compiler following the completion of several processing phases like lexical, syntax, and semantic analysis. Depending on the operating system, object files often have a ".o" or ".obj" file extension

In conclusion, source files are machine-readable and the compiler's output, whereas object files are machine-readable and the compiler's input.

For more questions:-

https://brainly.in/question/27709341

#SPJ3

Similar questions