<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Gibt es eine max. Arraylänge??????]]></title><description><![CDATA[<p>Hallo,</p>
<p>Ich wollte mal fragen ob es eine maximale Arraylänge gibt??? Z.B. 10 Milliarden double Einträge ????? Mir ist sowas schonmal mit einem anderen Programm passiert und diesmal würd ichs gerne früher wissen.....<br />
Hintergrund ist, dass ich mir eine &quot;Matrix&quot; aufgebaut habe, die aber in Wirklichkeit nur ein Array ist. Wenn man jetzt sozusagen 30 Spalten und 10 Mio Einträge hat wird der Array schnell ziemlich groß.....</p>
<p>Weiß da jemand was zu????</p>
<p>vielen Dank</p>
<p>Cascoin <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f44d.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--thumbs_up"
      title=":+1:"
      alt="👍"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/topic/257894/gibt-es-eine-max-arraylänge</link><generator>RSS for Node</generator><lastBuildDate>Wed, 09 Sep 2026 19:25:42 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/257894.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 04 Jan 2010 16:09:10 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Gibt es eine max. Arraylänge?????? on Mon, 04 Jan 2010 16:09:10 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>Ich wollte mal fragen ob es eine maximale Arraylänge gibt??? Z.B. 10 Milliarden double Einträge ????? Mir ist sowas schonmal mit einem anderen Programm passiert und diesmal würd ichs gerne früher wissen.....<br />
Hintergrund ist, dass ich mir eine &quot;Matrix&quot; aufgebaut habe, die aber in Wirklichkeit nur ein Array ist. Wenn man jetzt sozusagen 30 Spalten und 10 Mio Einträge hat wird der Array schnell ziemlich groß.....</p>
<p>Weiß da jemand was zu????</p>
<p>vielen Dank</p>
<p>Cascoin <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f44d.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--thumbs_up"
      title=":+1:"
      alt="👍"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1832268</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1832268</guid><dc:creator><![CDATA[casicas13]]></dc:creator><pubDate>Mon, 04 Jan 2010 16:09:10 GMT</pubDate></item><item><title><![CDATA[Reply to Gibt es eine max. Arraylänge?????? on Mon, 04 Jan 2010 16:11:49 GMT]]></title><description><![CDATA[<p>Der groesste zusammenhaengende Block im Speicher beschraenkt die Laenge deines Arrays.</p>
<p>PS: Ein Fragezeichen reicht.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1832269</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1832269</guid><dc:creator><![CDATA[knivil]]></dc:creator><pubDate>Mon, 04 Jan 2010 16:11:49 GMT</pubDate></item><item><title><![CDATA[Reply to Gibt es eine max. Arraylänge?????? on Mon, 04 Jan 2010 16:39:19 GMT]]></title><description><![CDATA[<p>physikalisch: soviel wie du hast.</p>
<p>Ansonsten: soviel du addressieren kannst, mit 32 Bit System lassen sich von einem Programm zum Beispiel nur 4GB Speicher anfordern.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1832291</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1832291</guid><dc:creator><![CDATA[otze]]></dc:creator><pubDate>Mon, 04 Jan 2010 16:39:19 GMT</pubDate></item><item><title><![CDATA[Reply to Gibt es eine max. Arraylänge?????? on Mon, 04 Jan 2010 17:22:49 GMT]]></title><description><![CDATA[<p>otze schrieb:</p>
<blockquote>
<p>physikalisch: soviel wie du hast.</p>
<p>Ansonsten: soviel du addressieren kannst, mit 32 Bit System lassen sich von einem Programm zum Beispiel nur 4GB Speicher anfordern.</p>
</blockquote>
<p>Kommt halt drauf an wo das Array erstellt wird. Wenn es auf dem Stack erstellt wird hast du wesentlich geringere Grenzen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1832339</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1832339</guid><dc:creator><![CDATA[evilissimo]]></dc:creator><pubDate>Mon, 04 Jan 2010 17:22:49 GMT</pubDate></item><item><title><![CDATA[Reply to Gibt es eine max. Arraylänge?????? on Mon, 04 Jan 2010 17:39:22 GMT]]></title><description><![CDATA[<p>??????????</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1832354</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1832354</guid><dc:creator><![CDATA[????????]]></dc:creator><pubDate>Mon, 04 Jan 2010 17:39:22 GMT</pubDate></item><item><title><![CDATA[Reply to Gibt es eine max. Arraylänge?????? on Mon, 04 Jan 2010 17:52:36 GMT]]></title><description><![CDATA[<blockquote>
<p>geringere Grenzen</p>
</blockquote>
<p>Macht diese Wortkombination Sinn?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1832371</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1832371</guid><dc:creator><![CDATA[knivil]]></dc:creator><pubDate>Mon, 04 Jan 2010 17:52:36 GMT</pubDate></item><item><title><![CDATA[Reply to Gibt es eine max. Arraylänge?????? on Mon, 04 Jan 2010 21:29:51 GMT]]></title><description><![CDATA[<p>Also,</p>
<p>mal angenommen man programmiert mit borland c++ (Builder 4), man arbeitet mit Windows XP und man hat 2Gigabyte Arbeitsspeicher.<br />
davon fallen vielleicht 1 gigabyte arbeitsspeicher an andere programme vlt. Windows ab.</p>
<p>So wie ich euch verstanden habe wäre dann meine maximale arraylaenge:</p>
<p>Anzahl double Elemente * Anzahl Arrayelemente = max. verfügbarer Arbeitsspeicher</p>
<p>Ich hab gelesen das ein double Element 8 byte Speicher hat. ! Gigabyte Speicher sind so ca. 1000Mb*1000Kb*1000Byte = 10E+09</p>
<p>Was dann umgerechnet 125 Mio einträge bedeuten würde.....</p>
<p>Stimmt das so????</p>
<p>Und (rein interessehalber), falls man mehr speicherplatz resserviert als man tatsächlich zur verfügung hat(physikalisch), werden dann systemdaten überschrieben?? Oder was passiert da??</p>
<p>Danke für die vorigen antworten</p>
<p>cascoin</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1832548</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1832548</guid><dc:creator><![CDATA[cascoin]]></dc:creator><pubDate>Mon, 04 Jan 2010 21:29:51 GMT</pubDate></item><item><title><![CDATA[Reply to Gibt es eine max. Arraylänge?????? on Mon, 04 Jan 2010 22:44:47 GMT]]></title><description><![CDATA[<p>cascoin schrieb:</p>
<blockquote>
<p>davon fallen vielleicht 1 gigabyte arbeitsspeicher an andere programme vlt. Windows ab.</p>
</blockquote>
<p>unerheblich...</p>
<p>du kannst davon ausgehen, dass du auf nem 32bit system max. 4GB Speicher bekommst - wenn der zusammenhängend sein soll(wie das bei nem array der fall ist), solltest du nicht von mehr als 800MB ausgehen...</p>
<p>wie viel RAM du selbst in deinem PC hast, ist völlig Schnuppe... Es gibt ja auch Auslagerungsdateien...</p>
<p>bb</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1832590</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1832590</guid><dc:creator><![CDATA[unskilled]]></dc:creator><pubDate>Mon, 04 Jan 2010 22:44:47 GMT</pubDate></item><item><title><![CDATA[Reply to Gibt es eine max. Arraylänge?????? on Tue, 05 Jan 2010 13:34:56 GMT]]></title><description><![CDATA[<p>cascoin schrieb:</p>
<blockquote>
<p>werden dann systemdaten überschrieben??<br />
cascoin</p>
</blockquote>
<p>Das mit sicherheit nicht, wär ja schlimm <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1832926</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1832926</guid><dc:creator><![CDATA[AndyK.]]></dc:creator><pubDate>Tue, 05 Jan 2010 13:34:56 GMT</pubDate></item><item><title><![CDATA[Reply to Gibt es eine max. Arraylänge?????? on Tue, 05 Jan 2010 14:19:27 GMT]]></title><description><![CDATA[<p>Probier es doch einfach aus was auf deinem System gerade so geht.</p>
<p>Aber wie (fast) immer in der Programmierung: Wenn dich das Limit interessiert machst du was falsch.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1832960</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1832960</guid><dc:creator><![CDATA[Fellhuhn]]></dc:creator><pubDate>Tue, 05 Jan 2010 14:19:27 GMT</pubDate></item><item><title><![CDATA[Reply to Gibt es eine max. Arraylänge?????? on Tue, 05 Jan 2010 15:06:20 GMT]]></title><description><![CDATA[<p>Ok,<br />
Wenn man also von 800MB (hat &quot;unskilled&quot; gesagt)ausgeht, hätte man wenn der Array nur aus double's besteht 100 Mio Zeilen......<br />
Ist ja schon ein Haufen.<br />
Ausprobieren kann ichs noch net weil ich noch net so weit bin.....<br />
Aber das reicht locker. Ich hatte schiss das es nur bis 1 Mio oder so geht.</p>
<p>Jedenfalls Danke für eure Antworten.....</p>
<p>Ade <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f44d.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--thumbs_up"
      title=":+1:"
      alt="👍"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1833008</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1833008</guid><dc:creator><![CDATA[cascoin]]></dc:creator><pubDate>Tue, 05 Jan 2010 15:06:20 GMT</pubDate></item><item><title><![CDATA[Reply to Gibt es eine max. Arraylänge?????? on Tue, 05 Jan 2010 17:05:07 GMT]]></title><description><![CDATA[<p>Für die Interessierten:</p>
<p>bei 500 millionen einträgen kompiliert mein Compiler nicht mehr <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
<p>--&gt; total size of array must not exceed 0x7fffffff bytes</p>
<p>125000000 schafft mein PC locker dauert nur halt ein paar sekunden, bei 200000000 Einträgen klappts nicht mehr so super, irgentwann hab ich aufgehört, weiß nicht ob es klappen würde <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1833103</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1833103</guid><dc:creator><![CDATA[uhsuhz]]></dc:creator><pubDate>Tue, 05 Jan 2010 17:05:07 GMT</pubDate></item><item><title><![CDATA[Reply to Gibt es eine max. Arraylänge?????? on Tue, 05 Jan 2010 17:32:03 GMT]]></title><description><![CDATA[<p>uhsuhz schrieb:</p>
<blockquote>
<p>--&gt; total size of array must not exceed 0x7fffffff bytes</p>
</blockquote>
<p>Das sind einfach 2GB, was die theoretische Obergrenze für normale Anwendungen unter einem 32-Bit Windows ist. Daher rate ich auch mal, dass du dein Programm für diese Plattform kompilierst. Abgesehen davon hat diese Zahl aber keine besondere Bedeutung.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1833129</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1833129</guid><dc:creator><![CDATA[SeppJ]]></dc:creator><pubDate>Tue, 05 Jan 2010 17:32:03 GMT</pubDate></item><item><title><![CDATA[Reply to Gibt es eine max. Arraylänge?????? on Tue, 05 Jan 2010 17:52:50 GMT]]></title><description><![CDATA[<p>Ich fasse mal die Frage und die Anworten in einer neuen Frage zusammen:<br />
&quot;Kann ich - rein biologisch - eine Million Jahre alt werden? <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f62e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_open_mouth"
      title=":open_mouth:"
      alt="😮"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1833152</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1833152</guid><dc:creator><![CDATA[berniebutt]]></dc:creator><pubDate>Tue, 05 Jan 2010 17:52:50 GMT</pubDate></item><item><title><![CDATA[Reply to Gibt es eine max. Arraylänge?????? on Tue, 05 Jan 2010 17:59:08 GMT]]></title><description><![CDATA[<p>Nein!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1833156</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1833156</guid><dc:creator><![CDATA[knivil]]></dc:creator><pubDate>Tue, 05 Jan 2010 17:59:08 GMT</pubDate></item><item><title><![CDATA[Reply to Gibt es eine max. Arraylänge?????? on Wed, 06 Jan 2010 08:48:54 GMT]]></title><description><![CDATA[<p>berniebutt schrieb:</p>
<blockquote>
<p>Ich fasse mal die Frage und die Anworten in einer neuen Frage zusammen:<br />
&quot;Kann ich - rein biologisch - eine Million Jahre alt werden? <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f62e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_open_mouth"
      title=":open_mouth:"
      alt="😮"
    /></p>
</blockquote>
<p>Du kannst nicht einmal zwanzig Jahre alt werden. Ist auch keiner hier. Denn nahezu alle (oder waren es gar alle?) Zellen deines Körpers werden vorher durch neue ersetzt. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61b.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_tongue"
      title=":P"
      alt="😛"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1833453</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1833453</guid><dc:creator><![CDATA[Fellhuhn]]></dc:creator><pubDate>Wed, 06 Jan 2010 08:48:54 GMT</pubDate></item><item><title><![CDATA[Reply to Gibt es eine max. Arraylänge?????? on Wed, 06 Jan 2010 09:11:36 GMT]]></title><description><![CDATA[<p>Fellhuhn schrieb:</p>
<blockquote>
<p>Aber wie (fast) immer in der Programmierung: Wenn dich das Limit interessiert machst du was falsch.</p>
</blockquote>
<p>Nicht beim Numbercrunching, um das es hier wohl geht. Es gibt nun mal Probleme, deren Speicherbedarf so schnell wächst, dass die maximalen Grenzen sehr relevant werden. Bei einer Klassifizierung mit einer SVM ist ein Speicherbedarf von N^2 durchaus ausreichend, dass man ab 10.000 Elementen Probleme mit der Machbarkeit kriegt.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1833464</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1833464</guid><dc:creator><![CDATA[otze]]></dc:creator><pubDate>Wed, 06 Jan 2010 09:11:36 GMT</pubDate></item><item><title><![CDATA[Reply to Gibt es eine max. Arraylänge?????? on Wed, 06 Jan 2010 09:14:18 GMT]]></title><description><![CDATA[<p>Deswegen steht da ja auch &quot;(fast)&quot;. :p</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1833468</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1833468</guid><dc:creator><![CDATA[Fellhuhn]]></dc:creator><pubDate>Wed, 06 Jan 2010 09:14:18 GMT</pubDate></item><item><title><![CDATA[Reply to Gibt es eine max. Arraylänge?????? on Wed, 06 Jan 2010 09:16:26 GMT]]></title><description><![CDATA[<p>Fellhuhn schrieb:</p>
<blockquote>
<p>Deswegen steht da ja auch &quot;(fast)&quot;. :p</p>
</blockquote>
<p>wenn mit &quot;fast&quot; meinst: &quot;es ist im ursprünglichen Kernbereich der Informatik absolut relevant&quot; - dann sind wir uns einig <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1833470</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1833470</guid><dc:creator><![CDATA[otze]]></dc:creator><pubDate>Wed, 06 Jan 2010 09:16:26 GMT</pubDate></item><item><title><![CDATA[Reply to Gibt es eine max. Arraylänge?????? on Wed, 06 Jan 2010 10:32:18 GMT]]></title><description><![CDATA[<p>Fellhuhn schrieb:</p>
<blockquote>
<p>Du kannst nicht einmal zwanzig Jahre alt werden. Ist auch keiner hier. Denn nahezu alle (oder waren es gar alle?) Zellen deines Körpers werden vorher durch neue ersetzt. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61b.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_tongue"
      title=":P"
      alt="😛"
    /></p>
</blockquote>
<p>Aber die Zellen vermehren sich durch Teilung. Welche der Zellen ist nach der Teiliung das Original und welche die Kopie? <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1833502</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1833502</guid><dc:creator><![CDATA[SeppJ]]></dc:creator><pubDate>Wed, 06 Jan 2010 10:32:18 GMT</pubDate></item><item><title><![CDATA[Reply to Gibt es eine max. Arraylänge?????? on Wed, 06 Jan 2010 12:13:43 GMT]]></title><description><![CDATA[<p>Also,</p>
<p><strong>linear</strong> lassen sich bei 32bit Adressraum höchstens 2<sup>32</sup> Bytes ansprechen. Nichtlinear sind es allerdings viel mehr, begrenzt meist durch Speichervolumina (gemeint ist z.B. die Festplatte, nicht RAM). Das ist jedoch plattformspezifisch und muss mit entsprechenden Mitteln geschehen (unter Windows etwa file mapping / shared memory).</p>
<p>Auf zeitgemäßen non-embedded Systemen mit zeitgemäßen OS und Applikationen ist ein kleiner Adressraum natürlich weniger ein Problem.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1833574</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1833574</guid><dc:creator><![CDATA[Superlexx]]></dc:creator><pubDate>Wed, 06 Jan 2010 12:13:43 GMT</pubDate></item></channel></rss>