decoration decoration
Stories

GROKLAW
When you want to know more...
decoration
For layout only
Home
Archives
Site Map
Search
About Groklaw
Awards
Legal Research
Timelines
ApplevSamsung
ApplevSamsung p.2
ArchiveExplorer
Autozone
Bilski
Cases
Cast: Lawyers
Comes v. MS
Contracts/Documents
Courts
DRM
Gordon v MS
GPL
Grokdoc
HTML How To
IPI v RH
IV v. Google
Legal Docs
Lodsys
MS Litigations
MSvB&N
News Picks
Novell v. MS
Novell-MS Deal
ODF/OOXML
OOXML Appeals
OraclevGoogle
Patents
ProjectMonterey
Psystar
Quote Database
Red Hat v SCO
Salus Book
SCEA v Hotz
SCO Appeals
SCO Bankruptcy
SCO Financials
SCO Overview
SCO v IBM
SCO v Novell
SCO:Soup2Nuts
SCOsource
Sean Daly
Software Patents
Switch to Linux
Transcripts
Unix Books

Gear

Groklaw Gear

Click here to send an email to the editor of this weblog.


You won't find me on Facebook


Donate

Donate Paypal


No Legal Advice

The information on Groklaw is not intended to constitute legal advice. While Mark is a lawyer and he has asked other lawyers and law students to contribute articles, all of these articles are offered to help educate, not to provide specific legal advice. They are not your lawyers.

Here's Groklaw's comments policy.


What's New

STORIES
No new stories

COMMENTS last 48 hrs
No new comments


Sponsors

Hosting:
hosted by ibiblio

On servers donated to ibiblio by AMD.

Webmaster
My take on static vs. dynamic (especially linking) | 439 comments | Create New Account
Comments belong to whoever posts them. Please notify us of inappropriate comments.
My take on static vs. dynamic (especially linking)
Authored by: SLi on Monday, May 14 2012 @ 03:45 PM EDT

But then dynamic linking definitely normally means linking every time the application is started (DLLs for Windows, .so:s for Linux). Then it's possible to also do pre-linking where you speed up future dynamic linking by processing executables and the installed libraries and resolving much of the symbols. I think that's closest of these to what Google is doing here (resolving the references is pretty much what linking is about), and it's hard to tell if it should be considered dynamic or static.

The standard definition for static linking would be doing the linking at build time (building an application consists of several steps, possibly including compiling and linking). With statically linked programs in the standard meaning of that term, the linking is done by the program vendor before the application, together with the linked library, is delivered to the device.

Yet another aspect on static vs. dynamic linking: With static linking, the library becomes part of the program executable file. Typically that means different programs that use the same library contain individual copies of that library, wasting at least disk space and usually also RAM. Dynamically linked programs only "point" to a library.

This also has the effect that dynamic libraries can often be updated independently of the application, as long as they preserve ABI (Application Binary Interface - the compiled program equivalent of API) compatibility. This is often quite useful: For example, it's normal that the code for accessing popular image formats like GIF, JPEG or PNG is encapsulated in a dynamic library. All browsers and lots of other programs then link against this library. Now, if you find a bug or a security vulnerability in the library, you only need to recompile and update it, not all of the applications individually.

[ Reply to This | Parent | # ]

Groklaw © Copyright 2003-2013 Pamela Jones.
All trademarks and copyrights on this page are owned by their respective owners.
Comments are owned by the individual posters.

PJ's articles are licensed under a Creative Commons License. ( Details )