<?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[arbeitsspeicher reservieren]]></title><description><![CDATA[<p>guten abend!</p>
<p>nur mal aus interesse:<br />
kann ich für c++ programme auch arbeitsspeicher im voraus reservieren?<br />
oder wird das automatisch geregelt und man hat keinen einfluss darauf?</p>
<p>hok</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/184480/arbeitsspeicher-reservieren</link><generator>RSS for Node</generator><lastBuildDate>Wed, 23 Sep 2026 18:31:01 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/184480.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 15 Jun 2007 15:32:25 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to arbeitsspeicher reservieren on Fri, 15 Jun 2007 15:32:25 GMT]]></title><description><![CDATA[<p>guten abend!</p>
<p>nur mal aus interesse:<br />
kann ich für c++ programme auch arbeitsspeicher im voraus reservieren?<br />
oder wird das automatisch geregelt und man hat keinen einfluss darauf?</p>
<p>hok</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1306674</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1306674</guid><dc:creator><![CDATA[hokage]]></dc:creator><pubDate>Fri, 15 Jun 2007 15:32:25 GMT</pubDate></item><item><title><![CDATA[Reply to arbeitsspeicher reservieren on Fri, 15 Jun 2007 15:40:23 GMT]]></title><description><![CDATA[<p>Wie meinst du das? Du kannst dir direkt nach dem Start einen großen Speicherblock reservieren, das ist kein Problem. Aber ich vermute du meinst was anderes?!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1306680</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1306680</guid><dc:creator><![CDATA[David_pb]]></dc:creator><pubDate>Fri, 15 Jun 2007 15:40:23 GMT</pubDate></item><item><title><![CDATA[Reply to arbeitsspeicher reservieren on Fri, 15 Jun 2007 15:42:15 GMT]]></title><description><![CDATA[<p>mit new geht das</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1306682</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1306682</guid><dc:creator><![CDATA[mit new geht das]]></dc:creator><pubDate>Fri, 15 Jun 2007 15:42:15 GMT</pubDate></item><item><title><![CDATA[Reply to arbeitsspeicher reservieren on Fri, 15 Jun 2007 15:42:29 GMT]]></title><description><![CDATA[<p>man kann also einfach sagen:<br />
&quot;gib mir 50 mb ram&quot; und dann reserviert windows das?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1306683</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1306683</guid><dc:creator><![CDATA[hokage]]></dc:creator><pubDate>Fri, 15 Jun 2007 15:42:29 GMT</pubDate></item><item><title><![CDATA[Reply to arbeitsspeicher reservieren on Fri, 15 Jun 2007 15:43:19 GMT]]></title><description><![CDATA[<p>was meinst du mit &quot;im voraus?&quot;</p>
<p>Du könntest einen großen Block Arbeitsspeicher am Anfang allokieren und dann als pool nehmen. Siehe die zahlreichen pool-allocatoren (zb in libstdc++ oder boost)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1306684</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1306684</guid><dc:creator><![CDATA[rüdiger]]></dc:creator><pubDate>Fri, 15 Jun 2007 15:43:19 GMT</pubDate></item><item><title><![CDATA[Reply to arbeitsspeicher reservieren on Fri, 15 Jun 2007 15:47:50 GMT]]></title><description><![CDATA[<p>ich denke mir das ( als blutiger c++ anfänger ) so:<br />
das programm reserviert sich den speicher, den es für sich braucht.<br />
ich dachte nur über die möglichkeit nach, das man meinetwegen am anfang sagt: ich will 20 mb ram haben und die solln die ganze laufzeit des programms da sein egal ob (sinnvoll vom programm ) beschrieben oder nicht.<br />
es geht nich unbedingt um die sinnvolligkeit dieses vorhabens, sondern es geht mir um die möglichkeit <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/1306691</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1306691</guid><dc:creator><![CDATA[hokage]]></dc:creator><pubDate>Fri, 15 Jun 2007 15:47:50 GMT</pubDate></item><item><title><![CDATA[Reply to arbeitsspeicher reservieren on Fri, 15 Jun 2007 16:00:24 GMT]]></title><description><![CDATA[<p>Klar geht das:</p>
<pre><code class="language-cpp">char* block = new char[ ( 1 &lt;&lt; 20 ) * 20 ];
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1306696</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1306696</guid><dc:creator><![CDATA[David_pb]]></dc:creator><pubDate>Fri, 15 Jun 2007 16:00:24 GMT</pubDate></item><item><title><![CDATA[Reply to arbeitsspeicher reservieren on Fri, 15 Jun 2007 17:06:51 GMT]]></title><description><![CDATA[<p>David_pb schrieb:</p>
<blockquote>
<p>Klar geht das:</p>
<pre><code class="language-cpp">char* block = new char[ ( 1 &lt;&lt; 20 ) * 20 ];
</code></pre>
</blockquote>
<p>Zwar definiert der C++ Standard, dass block nun auf ein großes kontinuierliches Stück Speicher zeigt, um aber wirklich sicher zu sein, müsste man erst mal auf jedes Array-Element schreibend zugreifen. Gibt schließlich Betriebssysteme die &quot;lazy-commit&quot; verwenden.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1306750</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1306750</guid><dc:creator><![CDATA[HumeSikkins]]></dc:creator><pubDate>Fri, 15 Jun 2007 17:06:51 GMT</pubDate></item><item><title><![CDATA[Reply to arbeitsspeicher reservieren on Sat, 16 Jun 2007 10:39:58 GMT]]></title><description><![CDATA[<p>was ist wenn er mal mit integer, mal mit double, float arbeiten möchte? geht doch nicht alles in char?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1307103</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1307103</guid><dc:creator><![CDATA[hä]]></dc:creator><pubDate>Sat, 16 Jun 2007 10:39:58 GMT</pubDate></item><item><title><![CDATA[Reply to arbeitsspeicher reservieren on Sat, 16 Jun 2007 11:08:39 GMT]]></title><description><![CDATA[<p>hä schrieb:</p>
<blockquote>
<p>was ist wenn er mal mit integer, mal mit double, float arbeiten möchte? geht doch nicht alles in char?</p>
</blockquote>
<p>klar geht das.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1307125</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1307125</guid><dc:creator><![CDATA[thordk]]></dc:creator><pubDate>Sat, 16 Jun 2007 11:08:39 GMT</pubDate></item><item><title><![CDATA[Reply to arbeitsspeicher reservieren on Sat, 16 Jun 2007 11:38:29 GMT]]></title><description><![CDATA[<p>thordk schrieb:</p>
<blockquote>
<p>hä schrieb:</p>
<blockquote>
<p>was ist wenn er mal mit integer, mal mit double, float arbeiten möchte? geht doch nicht alles in char?</p>
</blockquote>
<p>klar geht das.</p>
</blockquote>
<p>ist ja auch c++, da geht alles.</p>
<p>Was soll das ganze bringen? Lern lieber erst richtig programmieren.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1307141</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1307141</guid><dc:creator><![CDATA[hat kein sinn]]></dc:creator><pubDate>Sat, 16 Jun 2007 11:38:29 GMT</pubDate></item><item><title><![CDATA[Reply to arbeitsspeicher reservieren on Sat, 16 Jun 2007 11:50:04 GMT]]></title><description><![CDATA[<p>hat kein sinn schrieb:</p>
<blockquote>
<p>thordk schrieb:</p>
<blockquote>
<p>hä schrieb:</p>
<blockquote>
<p>was ist wenn er mal mit integer, mal mit double, float arbeiten möchte? geht doch nicht alles in char?</p>
</blockquote>
<p>klar geht das.</p>
</blockquote>
<p>ist ja auch c++, da geht alles.</p>
<p>Was soll das ganze bringen? Lern lieber erst richtig programmieren.</p>
</blockquote>
<p>dein nick ist programm, oder?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1307148</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1307148</guid><dc:creator><![CDATA[thordk]]></dc:creator><pubDate>Sat, 16 Jun 2007 11:50:04 GMT</pubDate></item><item><title><![CDATA[Reply to arbeitsspeicher reservieren on Sat, 16 Jun 2007 12:06:01 GMT]]></title><description><![CDATA[<p>HumeSikkins schrieb:</p>
<blockquote>
<p>...um aber wirklich sicher zu sein, müsste man erst mal auf jedes Array-Element schreibend zugreifen. Gibt schließlich Betriebssysteme die &quot;lazy-commit&quot; verwenden.</p>
</blockquote>
<p>ein byte pro page zu beschreiben müsste reichen <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="😉"
    /><br />
OP: falls du für windows programmierst --&gt; <a href="http://msdn2.microsoft.com/En-US/library/aa366887.aspx" rel="nofollow">http://msdn2.microsoft.com/En-US/library/aa366887.aspx</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1307155</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1307155</guid><dc:creator><![CDATA[pale dog]]></dc:creator><pubDate>Sat, 16 Jun 2007 12:06:01 GMT</pubDate></item></channel></rss>