<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body dir="ltr" bgcolor="#ffffff" text="#000000">
Oleg Goldshmidt wrote:
<blockquote cite="mid:m3vdn2iniy.fsf@goldshmidt.org" type="cite"><br>
<pre wrap=""> If a process
is linked against several libraries all but one need to be
relocated to other free addresses,</pre>
</blockquote>
No, this statement is very far from the truth. I have worked quite a
lot with DLLs, and very rarely saw the linker message saying that two
DLLs require overlapping base addresses. I'm not sure whether base
addresses are allocated randomly or something else is at work here, but
collisions are not that common.<br>
<br>
What you did neglect to count, however, is the size of the runtime
library.<br>
<br>
Also, there may be differences in the executable size that do not
translate to final in memory size, and it's not clear which -Os is
trying to minimize.<br>
<br>
Shachar<br>
<pre class="moz-signature" cols="72">--
Shachar Shemesh
Lingnu Open Source Consulting Ltd.
<a class="moz-txt-link-freetext" href="http://www.lingnu.com">http://www.lingnu.com</a>
</pre>
</body>
</html>