Category: 

What is Object Code?

Article Details
  • Written By: Derek Schauland
  • Edited By: O. Wallace
  • Images By: Photo_Ma, ビッグアップジャパン
  • Last Modified Date: 16 September 2016
  • Copyright Protected:
    2003-2016
    Conjecture Corporation
  • Print this Article
Free Widgets for your Site/Blog
In late 19th-century London, mail was delivered to residential addresses up to twelve times each day.   more...

September 28 ,  1924 :  Two US military planes complete the first flights around the world.  more...

Programming languages such as C and Java are high level languages that require the source code entered by the programmer to be compiled. Once the compiler has processed the code, it produces a set of object code that can be passed to other programs or run on a computer system.

When creating source code in an object oriented language such as C++, the programmer can use instances of objects to make the source code easier to follow. Once the code is compiled, the resulting object code will be difficult for a human to read, but can be processed very efficiently by a computer. The two types of objects are quite different, but for their respective uses — one read by programmers the other read by computers — they serve a similar purpose.

Object code can also keep the source code of a particular application protected and remove the requirement to include the source with the purchased product. One example of object code that consumers pay for would be Microsoft Office. The object code is written to a CD or DVD and packaged for sale, but the source code used to compile the applications into their working state is kept by Microsoft and not shared with the general public. This helps protect intellectual property for Microsoft and also eliminates the need for the individual to purchase the software to compile it prior to installation.

Ad

A compiler is a piece of software that transforms the entered source code into a machine language readable object which is optimized for reading by a computer. Separating the original source code from the installed code can also provide benefit to developers in testing, allowing the source code to continually change and be compiled to be available for later installations. An example of this might be to compare an application's nightly build to the stable packaged object code. One needs compiling and is changed nightly, the other has been tested and is made available when the majority of the kinks have been worked out.

Some applications or even operating systems such as Linux can be compiled by the users once downloaded, or they can be downloaded and installed from pre-compiled object code. Many of these applications are open source and the development communities that create and support them encourage those using them to assist in modifying their source code.

There are more and more open source applications and developers around the Internet who would encourage the use of nightly builds, however the packaged object code of both open source and payware applications can be much more user friendly.

Ad

You might also Like

Recommended

Discuss this Article

Post your comments

exception 'Exception' with message 'error writing captcha: Duplicate entry '2147483647' for key 'PRIMARY'' in /ssd/www/wisegeek/public_html/_core/classes/public/Captcha.php:44
Stack trace:
#0 /ssd/www/wisegeek/public_html/_core/controls/public/ControlDiscussionPostBox.php(324): Captcha->createCaptcha()
#1 /ssd/www/wisegeek/public_html/framework/classes/Control.php(104): ControlDiscussionPostBox->preRender(false)
#2 /ssd/www/wisegeek/public_html/framework/classes/Control.php(149): Control->render()
#3 /ssd/www/wisegeek/public_html/tpl/default-nocustom-lu/pages/public/article/article.htm(526): Control->__toString()
#4 /ssd/www/wisegeek/public_html/framework/classes/Control.php(300): require('/ssd/www/wisege...')
#5 /ssd/www/wisegeek/public_html/framework/classes/Control.php(309): Control->requireTpl('pages/public/ar...', Object(PageArticleCom), true)
#6 /ssd/www/wisegeek/public_html/framework/classes/Control.php(131): Control->renderTpl('pages/public/ar...', Object(PageArticleCom))
#7 /ssd/www/wisegeek/public_html/framework/classes/FormDataControl.php(87): Control->renderTemplate()
#8 /ssd/www/wisegeek/public_html/framework/classes/Control.php(109): FormDataControl->renderTemplate()
#9 /ssd/www/wisegeek/public_html/framework/classes/ScriptPage.php(50): Control->render(false)
#10 /ssd/www/wisegeek/public_html/framework/classes/Control.php(149): ScriptPage->render()
#11 /ssd/www/wisegeek/public_html/framework/classes/Page.php(97): Control->__toString()
#12 /ssd/www/wisegeek/public_html/_core/classes/public/PublicFrontController.php(443): Page->processRequest()
#13 /ssd/www/wisegeek/public_html/_core/classes/public/PublicFrontController.php(7): PublicFrontController->renderPage()
#14 /ssd/www/wisegeek/public_html/index.php(11): PublicFrontController::run()
#15 {main}