<?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: Writing large array blows out stack in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/Writing-large-array-blows-out-stack/m-p/955778#M20780</link>
    <description>Well, the program I gave is a little too simple. Actually, p is a structure with alot of different elements but totals in size close to 10 MB. How would I write out a structure that is 10 MB in size?</description>
    <pubDate>Fri, 22 Jun 2001 02:05:21 GMT</pubDate>
    <dc:creator>Intel_C_Intel</dc:creator>
    <dc:date>2001-06-22T02:05:21Z</dc:date>
    <item>
      <title>Writing large array blows out stack</title>
      <link>https://community.intel.com/t5/Software-Archive/Writing-large-array-blows-out-stack/m-p/955776#M20778</link>
      <description>Greetings, &lt;BR /&gt;  I was wondering if anyone can help me with the following problem. I'm trying to write out a large array to disk using a single write statement but the call seems to blow out the stack. This did work in 6.0.B3 but seems to break since we upgraded to 6.5A. It seems that the write statement attempts to make a copy of the data on the stack before writing it. Does anyone know of a way around this? Sample code follows. &lt;BR /&gt; &lt;BR /&gt;    PROGRAM ftest2 &lt;BR /&gt; &lt;BR /&gt;    IMPLICIT NONE &lt;BR /&gt; &lt;BR /&gt;    INTEGER(4), POINTER :: p (:) &lt;BR /&gt;    INTEGER(4) :: ierr &lt;BR /&gt;    INTEGER(4) :: size = (1024 * 1024 * 10) / 4 &lt;BR /&gt; &lt;BR /&gt;    ALLOCATE( p ( 1 : size ) ) &lt;BR /&gt; &lt;BR /&gt;    OPEN ( 69, FILE = 'test.bin', IOSTAT = ierr, status = 'REPLACE', FORM = 'BINARY' ) &lt;BR /&gt; &lt;BR /&gt;    WRITE ( 69, '(B)', IOSTAT = ierr) p &lt;BR /&gt;    CLOSE ( 69 ) &lt;BR /&gt; &lt;BR /&gt;    END PROGRAM ftest2</description>
      <pubDate>Thu, 21 Jun 2001 08:27:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Writing-large-array-blows-out-stack/m-p/955776#M20778</guid>
      <dc:creator>Intel_C_Intel</dc:creator>
      <dc:date>2001-06-21T08:27:47Z</dc:date>
    </item>
    <item>
      <title>Re: Writing large array blows out stack</title>
      <link>https://community.intel.com/t5/Software-Archive/Writing-large-array-blows-out-stack/m-p/955777#M20779</link>
      <description>Try the following: &lt;BR /&gt; &lt;BR /&gt;WRITE ( 69, '(B)', IOSTAT = ierr) (p(I),I=1,SIZE)</description>
      <pubDate>Thu, 21 Jun 2001 15:32:30 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Writing-large-array-blows-out-stack/m-p/955777#M20779</guid>
      <dc:creator>fela</dc:creator>
      <dc:date>2001-06-21T15:32:30Z</dc:date>
    </item>
    <item>
      <title>Re: Writing large array blows out stack</title>
      <link>https://community.intel.com/t5/Software-Archive/Writing-large-array-blows-out-stack/m-p/955778#M20780</link>
      <description>Well, the program I gave is a little too simple. Actually, p is a structure with alot of different elements but totals in size close to 10 MB. How would I write out a structure that is 10 MB in size?</description>
      <pubDate>Fri, 22 Jun 2001 02:05:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Writing-large-array-blows-out-stack/m-p/955778#M20780</guid>
      <dc:creator>Intel_C_Intel</dc:creator>
      <dc:date>2001-06-22T02:05:21Z</dc:date>
    </item>
    <item>
      <title>Re: Writing large array blows out stack</title>
      <link>https://community.intel.com/t5/Software-Archive/Writing-large-array-blows-out-stack/m-p/955779#M20781</link>
      <description>I'm confused - you open the file as FORM='BINARY' and then use a formatted write statement?  (And do you really mean (B) as the format?)&lt;BR /&gt;&lt;BR /&gt;Please send an example of your actual code to us at vf-support@compaq.com and we'll take a look.  It doesn't help to look at something that's not representative of your problem.&lt;BR /&gt;&lt;BR /&gt;Steve</description>
      <pubDate>Fri, 22 Jun 2001 02:39:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Writing-large-array-blows-out-stack/m-p/955779#M20781</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2001-06-22T02:39:12Z</dc:date>
    </item>
  </channel>
</rss>

