Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Object code
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{short description|Sequence of statements or instructions in a computer language}} {{distinguish|Object-oriented programming}} {{Use dmy dates|date=April 2025}} {{Program execution}} In [[computing]], '''object code''' or '''object module''' is the product of an [[assembler (computing)|assembler]] or [[compiler]].<ref>{{cite web|url=http://whatis.techtarget.com/definition/0,,sid9_gci211824,00.html|title=Compiler|publisher=TechTarget|quote=Traditionally, the output of the compilation has been called object code or sometimes an object module.|access-date=1 September 2011}}</ref> In a general sense, object code is a sequence of [[statement (computer science)|statements]] or instructions in a computer language,<ref>{{cite book |last1=Aho |first1=Alfred V. |author-link1=Alfred Aho |title=Compilers: principles, techniques, and tools |last2=Sethi |first2=Ravi |author-link2=Ravidassia |last3=Ullman |first3=Jeffrey C. |author-link3=Jeffrey Ullman |publisher=Mark S. Dalton |year=1986 |isbn=0-201-10194-7 |series=Computer Science |page=[https://archive.org/details/compilersprincip0000ahoa/page/704 704] |chapter=10 Code Optimization |chapter-url=https://archive.org/details/compilersprincip0000ahoa/page/704}}</ref> usually a [[machine code]] language (i.e., [[binary file|binary]]) or an intermediate language such as [[register transfer language]] (RTL). The term indicates that the code is the [[goal]] or result of the compiling process, with some early sources referring to source code as a "subject program".{{citation needed|date=October 2024}} ==Details== [[Object file]]s can in turn be [[linker (computing)|linked]] to form an [[executable file]] or [[library (computing)|library file]]. In order to be used, object code must either be placed in an executable file, a library file, or an object file. Object code is a portion of machine code that has not yet been linked into a complete program. It is the machine code for one particular library or module that will make up the completed product. It may also contain placeholders or offsets, not found in the machine code of a completed program, that the linker will use to connect everything together. Whereas machine code is binary code that can be executed directly by the CPU, object code has the jumps and inter-module references partially parametrized so that a linker can fill them in. An object file is assumed to begin at a specific location in memory, often zero. It contains information on instructions that reference memory, so that the linker can [[Relocation (computing)|relocate]] the code when combining multiple object files into a single program. An [[assembler (computing)|assembler]] is used to convert [[assembly code]] into machine code (object code). A linker links several object (and library) files to generate an executable. Assemblers (and some compilers) can also assemble directly to machine code to produce executable files without the object intermediary step.<ref>{{cite web |last1=Fischer |first1=Charles N. |title=What do compilers produce? |url=https://pages.cs.wisc.edu/~fischer/cs536.s05/lectures/Lecture03.pdf |publisher=University of Wisconsin Madison |access-date=2 April 2024}}</ref> ==References== {{Reflist}} {{Application binary interface}} [[Category:Machine code]] [[kk:Объектілік модуль]] [[ru:Объектный модуль]]
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)
Pages transcluded onto the current version of this page
(
help
)
:
Template:Application binary interface
(
edit
)
Template:Citation needed
(
edit
)
Template:Cite book
(
edit
)
Template:Cite web
(
edit
)
Template:Distinguish
(
edit
)
Template:Program execution
(
edit
)
Template:Reflist
(
edit
)
Template:Short description
(
edit
)
Template:Use dmy dates
(
edit
)