menu
Qammunity
Login
Register
My account
Edit my Profile
Private messages
My favorites
Ask a Question
Questions
Unanswered
Tags
Categories
Ask a Question
Explain the difference between an object file and an executable file.
asked
Feb 18, 2021
1.8k
views
3
votes
Explain the difference between an object file and an executable file.
Computers and Technology
high-school
Yava
asked
by
Yava
8.7k
points
answer
comment
share this
share
0 Comments
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
1
Answer
3
votes
Answer:
Object file:
Object file has the object code.
The source code, which is a program written by the programmer is compiled, is converted to an intermediate code which is called an object code.
So object file is a file produced by the compiler or interpreter.
The compiler eliminates the errors such as syntax errors from the source code and then converts this code to an object file which lies in the middle of source code and executable file because the CPU cannot execute an object file directly.
Object file has an extension of .o in Linux and .obj in Windows and it object file is also called relocatable file and it contains data, code and information such as debugging information. This file is put into a special format to send to the linker in order to create an executable file.
Executable file
The object code that is produced by the compiler is then sent to the linker to generate the executable file.
This is also called the final file that is executed and used to give the output of the program instructions.
It has an extension of .exe
Executable file is machine understandable.
It is created by linking the the object files by the linker. The object files are linked using a linker which integrates the object files to produce an executable file.
It is an executable file which is loaded into the memory when the program is to be run and the executable code is executed by the CPU directly.
Hank
answered
Feb 25, 2021
by
Hank
7.6k
points
ask related question
comment
share this
0 Comments
Please
log in
or
register
to add a comment.
← Prev Question
Next Question →
Related questions
asked
May 13, 2024
75.7k
views
.EXE, .MSI, .APP, .BAT, .CMD, .VBS, .JS, and .PS1 extensions are examples of what kind of files? a) Image files b) Audio files c) Video files d) Executable files
Reuben Bijl
asked
May 13, 2024
by
Reuben Bijl
8.2k
points
Computers and Technology
high-school
1
answer
1
vote
75.7k
views
asked
Oct 27, 2024
183k
views
A(n) ____ loads an executable program into main memory for execution.
Lely
asked
Oct 27, 2024
by
Lely
7.5k
points
Computers and Technology
high-school
1
answer
4
votes
183k
views
asked
Feb 14, 2024
31.0k
views
a placeholder for missing executable code is called a(n) . a. external function call b. reference function call c. function header d. internal function call
Pricey
asked
Feb 14, 2024
by
Pricey
8.3k
points
Computers and Technology
high-school
1
answer
0
votes
31.0k
views
Ask a Question
Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.
9.4m
questions
12.2m
answers
Other Questions
“What does it mean when we “rework” copyrighted material?”
The book shows how to add and subtract binary and decimal numbers. However, other numbering systems are also very popular when dealing with computers. The octal (base 8) numbering system is one of these.
Seven basic internal components found in a computer tower
Please help me ! All you do is just put it it all in your own words ! Please this is for my reported card!i don't know how to put it in my own words because my English is not that good!
describe an advance in technology that makes life more enjoyable. what discoveries contribute to this technology?
Twitter
WhatsApp
Facebook
Reddit
LinkedIn
Email
Link Copied!
Copy
Search Qammunity