<div>Hi!</div><div><br /></div><div> Small remark:</div><div>When "<span style="font-family:'calibri' , 'helvetica' , sans-serif;font-size:12pt">mklib (will) be combined into cm3"</span></div><div><span style="font-family:'calibri' , 'helvetica' , sans-serif;font-size:12pt">we can close "Issue #200"</span></div><div><span style="font-family:'calibri' , 'helvetica' , sans-serif;font-size:12pt"><br /></span></div><div><span style="font-family:'calibri' , 'helvetica' , sans-serif;font-size:12pt"> But this doesn't related "killing support of </span></div><div><font face="calibri, helvetica, sans-serif"><span style="font-size:16px">.dll creating".</span></font></div><div><span style="font-family:'calibri' , 'helvetica' , sans-serif;font-size:12pt"><br /></span></div><div>--</div><div><br /></div><div> May be implement both ( static .exe + library) and ( .exe + .dll)? And programmer can be choice?</div><div><br /></div><div>Best regards, Victor Miasnikov</div><div><br /></div><div>24.06.2021, 20:03, "Jay K" <jayk123@hotmail.com>:</div><blockquote><div dir="ltr">
<div style="color:rgb( 0 , 0 , 0 );font-family:'calibri' , 'helvetica' , sans-serif;font-size:12pt">
Ok, but just look how trivial new platforms/toolsets are to support, when dynamic linking is omitted:</div>
<div style="color:rgb( 0 , 0 , 0 );font-family:'calibri' , 'helvetica' , sans-serif;font-size:12pt">
<br />
</div>
<div style="color:rgb( 0 , 0 , 0 );font-family:'calibri' , 'helvetica' , sans-serif;font-size:12pt">
<a href="https://github.com/modula3/cm3/commit/dd9bdac5ab43d1260444bf0bea0875b9e48de36f" target="_blank">Add AMD64_MINGW config and script support. (#697) · modula3/cm3@dd9bdac (github.com)</a><br />
</div>
<div style="color:rgb( 0 , 0 , 0 );font-family:'calibri' , 'helvetica' , sans-serif;font-size:12pt">
<br />
</div>
<div style="color:rgb( 0 , 0 , 0 );font-family:'calibri' , 'helvetica' , sans-serif;font-size:12pt">
and there is all the versioning/compat stuff that we kinda ignore. And there is mklib, and there is the data stuff on Windows (we do not have the support to dynamically link data, never did, so the known place we link data, we do it statically).</div>
<div style="color:rgb( 0 , 0 , 0 );font-family:'calibri' , 'helvetica' , sans-serif;font-size:12pt">
But ok, keep what we have.</div>
<div style="color:rgb( 0 , 0 , 0 );font-family:'calibri' , 'helvetica' , sans-serif;font-size:12pt">
<br />
</div>
<div style="color:rgb( 0 , 0 , 0 );font-family:'calibri' , 'helvetica' , sans-serif;font-size:12pt">
cm3 itself should be dynamically linked to libm3/m3core. Once build works better.</div>
<div style="color:rgb( 0 , 0 , 0 );font-family:'calibri' , 'helvetica' , sans-serif;font-size:12pt">
mklib should be combined into cm3, and/or dynamically linked.</div>
<div style="color:rgb( 0 , 0 , 0 );font-family:'calibri' , 'helvetica' , sans-serif;font-size:12pt">
<br />
</div>
<div style="color:rgb( 0 , 0 , 0 );font-family:'calibri' , 'helvetica' , sans-serif;font-size:12pt">
- Jay</div>
<div>
<div id="dd8fcbc3886f6beba9d56dd35eeb1be5appendonsend"></div>
<div style="color:rgb( 0 , 0 , 0 );font-family:'calibri' , 'helvetica' , sans-serif;font-size:12pt">
<br />
</div>
<hr style="display:inline-block;width:98%" />
<div id="f2e387f28ef856c18dfa722bbcbb9bfadivRplyFwdMsg" dir="ltr"><font color="#000000" face="Calibri, sans-serif" style="font-size:11pt"><b>From:</b> Tony Hosking <<a href="mailto:antony.hosking@anu.edu.au" target="_blank">antony.hosking@anu.edu.au</a>><br />
<b>Sent:</b> Thursday, June 24, 2021 7:40 AM<br />
<b>To:</b> Jay K <<a href="mailto:jayk123@hotmail.com" target="_blank">jayk123@hotmail.com</a>>; m3devel <<a href="mailto:m3devel@elegosoft.com" target="_blank">m3devel@elegosoft.com</a>><br />
<b>Subject:</b> Re: dropping dynamic linking?</font>
<div> </div>
</div>
<div lang="EN-US" style="word-wrap:break-word">
<div class="310a960a55789b46ef1fe4a2eb456730x_WordSection1">
<p class="74d6784902c136c87d6aba255ef582ax_MsoNormal" style="font-family:'calibri' , sans-serif;font-size:11pt;margin:0in">
Dropping dynamic linking is a non-starter. It must be supported!</p>
<p class="74d6784902c136c87d6aba255ef582ax_MsoNormal" style="font-family:'calibri' , sans-serif;font-size:11pt;margin:0in">
</p>
<div style="border-style:solid none none none;border-top-color:#b5c4df;border-width:1pt medium medium medium;padding:3pt 0in 0in 0in">
<p class="74d6784902c136c87d6aba255ef582ax_MsoNormal" style="font-family:'calibri' , sans-serif;font-size:11pt;margin:0in 0in 12pt 0.5in">
<b><span style="color:black;font-size:12pt">From: </span></b><span style="color:black;font-size:12pt">M3devel <<a href="mailto:m3devel-bounces@elegosoft.com" target="_blank">m3devel-bounces@elegosoft.com</a>> on behalf of Jay K <<a href="mailto:jayk123@hotmail.com" target="_blank">jayk123@hotmail.com</a>><br />
<b>Date: </b>Thursday, June 24, 2021 at 2:22 PM<br />
<b>To: </b>m3devel <<a href="mailto:m3devel@elegosoft.com" target="_blank">m3devel@elegosoft.com</a>><br />
<b>Subject: </b>[M3devel] dropping dynamic linking?</span></p>
</div>
<div>
<p class="74d6784902c136c87d6aba255ef582ax_MsoNormal" style="font-family:'calibri' , sans-serif;font-size:11pt;margin:0in 0in 0in 0.5in">
<span style="color:black;font-size:12pt">I am curious, if anyone would mind much, if we stopped doing dynamically linking, of Modula-3 code itself.</span></p>
</div>
<div>
<p class="74d6784902c136c87d6aba255ef582ax_MsoNormal" style="font-family:'calibri' , sans-serif;font-size:11pt;margin:0in 0in 0in 0.5in">
<span style="color:black;font-size:12pt"> </span></p>
</div>
<div>
<p class="74d6784902c136c87d6aba255ef582ax_MsoNormal" style="font-family:'calibri' , sans-serif;font-size:11pt;margin:0in 0in 0in 0.5in">
<span style="color:black;font-size:12pt">I am very well aware of all the tradeoffs.</span></p>
</div>
<div>
<p class="74d6784902c136c87d6aba255ef582ax_MsoNormal" style="font-family:'calibri' , sans-serif;font-size:11pt;margin:0in 0in 0in 0.5in">
<span style="color:black;font-size:12pt">Dynamic linking saves diskspace and memory when code is actually shared.</span></p>
</div>
<div>
<p class="74d6784902c136c87d6aba255ef582ax_MsoNormal" style="font-family:'calibri' , sans-serif;font-size:11pt;margin:0in 0in 0in 0.5in">
<span style="color:black;font-size:12pt">There is some indirection, but it <b>
should</b> not be much. But ELF defaults are also terrible.</span></p>
</div>
<div>
<p class="74d6784902c136c87d6aba255ef582ax_MsoNormal" style="font-family:'calibri' , sans-serif;font-size:11pt;margin:0in 0in 0in 0.5in">
<span style="color:black;font-size:12pt"> </span></p>
</div>
<div>
<p class="74d6784902c136c87d6aba255ef582ax_MsoNormal" style="font-family:'calibri' , sans-serif;font-size:11pt;margin:0in 0in 0in 0.5in">
<span style="color:black;font-size:12pt">The Modula-3 build system has a fair amount of code to support dynamic linking.</span></p>
</div>
<div>
<p class="74d6784902c136c87d6aba255ef582ax_MsoNormal" style="font-family:'calibri' , sans-serif;font-size:11pt;margin:0in 0in 0in 0.5in">
<span style="color:black;font-size:12pt">Is it worth maintaining?</span></p>
</div>
<div>
<p class="74d6784902c136c87d6aba255ef582ax_MsoNormal" style="font-family:'calibri' , sans-serif;font-size:11pt;margin:0in 0in 0in 0.5in">
<span style="color:black;font-size:12pt"> </span></p>
</div>
<div>
<p class="74d6784902c136c87d6aba255ef582ax_MsoNormal" style="font-family:'calibri' , sans-serif;font-size:11pt;margin:0in 0in 0in 0.5in">
<span style="color:black;font-size:12pt">We would continue dynamically linking to the underlying OS.</span></p>
</div>
<div>
<p class="74d6784902c136c87d6aba255ef582ax_MsoNormal" style="font-family:'calibri' , sans-serif;font-size:11pt;margin:0in 0in 0in 0.5in">
<span style="color:black;font-size:12pt"> </span></p>
</div>
<div>
<p class="74d6784902c136c87d6aba255ef582ax_MsoNormal" style="font-family:'calibri' , sans-serif;font-size:11pt;margin:0in 0in 0in 0.5in">
<span style="color:black;font-size:12pt">The Go developers seem to have a blanket policy/implementation of static linking (to go code, not OS).</span></p>
</div>
<div>
<p class="74d6784902c136c87d6aba255ef582ax_MsoNormal" style="font-family:'calibri' , sans-serif;font-size:11pt;margin:0in 0in 0in 0.5in">
<span style="color:black;font-size:12pt"> </span></p>
</div>
<div>
<p class="74d6784902c136c87d6aba255ef582ax_MsoNormal" style="font-family:'calibri' , sans-serif;font-size:11pt;margin:0in 0in 0in 0.5in">
<span style="color:black;font-size:12pt"> - Jay</span></p>
</div>
</div>
</div>
</div>
</div>
,<p>_______________________________________________<br />M3devel mailing list<br /><a href="mailto:M3devel@elegosoft.com" target="_blank">M3devel@elegosoft.com</a><br /><a href="https://m3lists.elegosoft.com/mailman/listinfo/m3devel" target="_blank">https://m3lists.elegosoft.com/mailman/listinfo/m3devel</a><br /></p></blockquote>