<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: link-error, can't get an exe-file in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/link-error-can-t-get-an-exe-file/m-p/5274294#M41285</link>
    <description>Some thoughts ...&lt;BR /&gt;&lt;BR /&gt;How many fortran and c-subroutines?  How large are your arrays and do you use multiple separate arrays when you could use one or two global arrays?  Will you always use all of the data structures or can you dynamically allocate memory when you need it?&lt;BR /&gt;&lt;BR /&gt;Will you always be calling all routines?  If not then maybe split some out into multiple shareable images.  Note that I say "multiple", that's because if you had just two you would start running with one and then dynamically activate the second, leaving you probably in a similar position to now.</description>
    <pubDate>Sun, 20 Feb 2011 21:27:32 GMT</pubDate>
    <dc:creator>John McL</dc:creator>
    <dc:date>2011-02-20T21:27:32Z</dc:date>
    <item>
      <title>link-error, can't get an exe-file</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/link-error-can-t-get-an-exe-file/m-p/5274288#M41279</link>
      <description>I cannot build a big program with many fortran- and c-subroutines.&lt;BR /&gt; &lt;BR /&gt;The linker reports and exits:&lt;BR /&gt;&lt;BR /&gt;%ILINK-E-IMEXP0, generated image, at least a short data segment, exceeds the P0 address space&lt;BR /&gt;&lt;BR /&gt;Any advice how to get the exe-file?&lt;BR /&gt;&lt;BR /&gt;Eberhard&lt;BR /&gt;</description>
      <pubDate>Fri, 18 Feb 2011 11:12:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/link-error-can-t-get-an-exe-file/m-p/5274288#M41279</guid>
      <dc:creator>Eberhard Heuser</dc:creator>
      <dc:date>2011-02-18T11:12:37Z</dc:date>
    </item>
    <item>
      <title>Re: link-error, can't get an exe-file</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/link-error-can-t-get-an-exe-file/m-p/5274289#M41280</link>
      <description>Eberhard,&lt;BR /&gt;&lt;BR /&gt;Hardware, software version, patch level?&lt;BR /&gt;&lt;BR /&gt;Proost.&lt;BR /&gt;&lt;BR /&gt;Have one on me.&lt;BR /&gt;&lt;BR /&gt;jpe</description>
      <pubDate>Fri, 18 Feb 2011 12:10:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/link-error-can-t-get-an-exe-file/m-p/5274289#M41280</guid>
      <dc:creator>Jan van den Ende</dc:creator>
      <dc:date>2011-02-18T12:10:50Z</dc:date>
    </item>
    <item>
      <title>Re: link-error, can't get an exe-file</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/link-error-can-t-get-an-exe-file/m-p/5274290#M41281</link>
      <description>OpenVMS V8.3-1H1&lt;BR /&gt;HP Fortran V8.2-104939-50H96&lt;BR /&gt;HP C V7.3-018 on OpenVMS IA64 V8.3-1H1&lt;BR /&gt;&lt;BR /&gt;eberhard</description>
      <pubDate>Fri, 18 Feb 2011 12:20:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/link-error-can-t-get-an-exe-file/m-p/5274290#M41281</guid>
      <dc:creator>Eberhard Heuser</dc:creator>
      <dc:date>2011-02-18T12:20:22Z</dc:date>
    </item>
    <item>
      <title>Re: link-error, can't get an exe-file</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/link-error-can-t-get-an-exe-file/m-p/5274291#M41282</link>
      <description>Maybe the targeted image will really be too big, maybe it is an aberration.&lt;BR /&gt;&lt;BR /&gt;May we assume you used to be able to build it?&lt;BR /&gt;Can you still build it using prior versions?&lt;BR /&gt;Does it generate a map when requested?&lt;BR /&gt;Study it! Many little things being rounded up to pages?&lt;BR /&gt;&lt;BR /&gt;If need be you'll have to study the map and see whether the prior version were 'close' to the edge (3fffffff), and a little bit more caused a problem or whether a new module cause a major impact.&lt;BR /&gt;New code with large STATIC / COMMON data added? Maybe that data has to go to P2 space somehow?&lt;BR /&gt;&lt;BR /&gt;I hazard to guess that you may have to start playing with linker options like CLUSTER and COLLECT to group stuff.&lt;BR /&gt;&lt;BR /&gt;Hope this helps some.&lt;BR /&gt;HB to the rescue (once we know more!)&lt;BR /&gt;&lt;BR /&gt;Hein&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 18 Feb 2011 12:53:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/link-error-can-t-get-an-exe-file/m-p/5274291#M41282</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2011-02-18T12:53:02Z</dc:date>
    </item>
    <item>
      <title>Re: link-error, can't get an exe-file</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/link-error-can-t-get-an-exe-file/m-p/5274292#M41283</link>
      <description>The linker simply reports that after collecting all the modules and their sections, the generated image does not fit into the P0 address space.&lt;BR /&gt;&lt;BR /&gt;It's not easy to give a general advice. You may get away with some tweaking in linker options and qualifiers. That works if the generated image just needs a couple of pages. But it doesn't say much about running the image, where you may run into problems with allocating heap. You may need to move some image segments out of P0.&lt;BR /&gt;&lt;BR /&gt;Have a look at the /segment qualifier, try to use a smaller /bpage value, try to avoid clusters, try to minimize the generation of image segments.&lt;BR /&gt;</description>
      <pubDate>Fri, 18 Feb 2011 12:56:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/link-error-can-t-get-an-exe-file/m-p/5274292#M41283</guid>
      <dc:creator>H.Becker</dc:creator>
      <dc:date>2011-02-18T12:56:52Z</dc:date>
    </item>
    <item>
      <title>Re: link-error, can't get an exe-file</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/link-error-can-t-get-an-exe-file/m-p/5274293#M41284</link>
      <description>If this is the first time it is linked on Itanium this might be caused by Itanium machine code taking up more space than Alpha code.&lt;BR /&gt;&lt;BR /&gt;Find some larger data psects that can be dynamically created in P2 space ... with some code changes,&lt;BR /&gt;&lt;BR /&gt;/Guenther</description>
      <pubDate>Fri, 18 Feb 2011 20:56:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/link-error-can-t-get-an-exe-file/m-p/5274293#M41284</guid>
      <dc:creator>GuentherF</dc:creator>
      <dc:date>2011-02-18T20:56:26Z</dc:date>
    </item>
    <item>
      <title>Re: link-error, can't get an exe-file</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/link-error-can-t-get-an-exe-file/m-p/5274294#M41285</link>
      <description>Some thoughts ...&lt;BR /&gt;&lt;BR /&gt;How many fortran and c-subroutines?  How large are your arrays and do you use multiple separate arrays when you could use one or two global arrays?  Will you always use all of the data structures or can you dynamically allocate memory when you need it?&lt;BR /&gt;&lt;BR /&gt;Will you always be calling all routines?  If not then maybe split some out into multiple shareable images.  Note that I say "multiple", that's because if you had just two you would start running with one and then dynamically activate the second, leaving you probably in a similar position to now.</description>
      <pubDate>Sun, 20 Feb 2011 21:27:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/link-error-can-t-get-an-exe-file/m-p/5274294#M41285</guid>
      <dc:creator>John McL</dc:creator>
      <dc:date>2011-02-20T21:27:32Z</dc:date>
    </item>
    <item>
      <title>Re: link-error, can't get an exe-file</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/link-error-can-t-get-an-exe-file/m-p/5274295#M41286</link>
      <description>&amp;gt;&amp;gt;&amp;gt; ... or can you dynamically allocate memory when you need it?&lt;BR /&gt;&amp;lt;&amp;lt;&amp;lt;&lt;BR /&gt;Lookss like a code change. And, I suspect this will only help if the memory is dynamically allocated in non-P0 space.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; Note that I say "multiple", that's because if you had just two you would start running with one and then dynamically activate the second, leaving you probably in a similar position to now.&lt;BR /&gt;&amp;lt;&amp;lt;&amp;lt;&lt;BR /&gt;Even just one can work if you move it to non-P0 space. And, shareable images are compressed, so using them can save some pages in the same way as I suggested before.</description>
      <pubDate>Sun, 20 Feb 2011 22:47:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/link-error-can-t-get-an-exe-file/m-p/5274295#M41286</guid>
      <dc:creator>H.Becker</dc:creator>
      <dc:date>2011-02-20T22:47:37Z</dc:date>
    </item>
    <item>
      <title>Re: link-error, can't get an exe-file</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/link-error-can-t-get-an-exe-file/m-p/5274296#M41287</link>
      <description>&lt;!--!*#--&gt;This is a little summary. Thanks for all comments!&lt;BR /&gt;&lt;BR /&gt;It turns out that large arrays produce this error. In order to move them to the 64bit address space you have to add directives:&lt;BR /&gt;&lt;BR /&gt;CDEC$ ATTRIBUTES ADDRESS64::x&lt;BR /&gt;         real*8 x(20000,20000)&lt;BR /&gt;&lt;BR /&gt;If learnt that it is very easy to move common blocks by the method mentioned above:&lt;BR /&gt;&lt;BR /&gt;CDEC$ ATTRIBUTES ADDRESS64::xcom&lt;BR /&gt;         real*8 x&lt;BR /&gt;         common /xcom/ x(20000,20000),y(200000)&lt;BR /&gt;&lt;BR /&gt;There is no need to define x and y in the 64 bit address space in the directives.&lt;BR /&gt;&lt;BR /&gt;eberhard</description>
      <pubDate>Tue, 08 Mar 2011 09:30:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/link-error-can-t-get-an-exe-file/m-p/5274296#M41287</guid>
      <dc:creator>Eberhard Heuser</dc:creator>
      <dc:date>2011-03-08T09:30:27Z</dc:date>
    </item>
    <item>
      <title>Re: link-error, can't get an exe-file</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/link-error-can-t-get-an-exe-file/m-p/5274297#M41288</link>
      <description>I'll close this thread now!</description>
      <pubDate>Tue, 08 Mar 2011 15:22:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/link-error-can-t-get-an-exe-file/m-p/5274297#M41288</guid>
      <dc:creator>Eberhard Heuser</dc:creator>
      <dc:date>2011-03-08T15:22:54Z</dc:date>
    </item>
  </channel>
</rss>

