<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>RAM | Learn C Games Programming Blog</title>
	<atom:link href="https://learncgames.com/tag/ram/feed/" rel="self" type="application/rss+xml" />
	<link>https://learncgames.com</link>
	<description>A blog about C, programming games and my ebook(s).</description>
	<lastBuildDate>Fri, 26 Feb 2021 10:56:05 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://learncgames.com/wp-content/uploads/2020/03/cropped-favicon-32x32.png</url>
	<title>RAM | Learn C Games Programming Blog</title>
	<link>https://learncgames.com</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">181446779</site>	<item>
		<title>Added a tutorial on memory use in C</title>
		<link>https://learncgames.com/added-a-tutorial-on-memory-use-in-c/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=added-a-tutorial-on-memory-use-in-c</link>
		
		<dc:creator><![CDATA[David]]></dc:creator>
		<pubDate>Sat, 27 Feb 2021 00:00:24 +0000</pubDate>
				<category><![CDATA[C]]></category>
		<category><![CDATA[tutorials]]></category>
		<category><![CDATA[memory]]></category>
		<category><![CDATA[RAM]]></category>
		<guid isPermaLink="false">https://learncgames.com/?p=2787</guid>

					<description><![CDATA[<p>You can read the tutorial here. It looks at the different ways memory is used in a C program. Do you know for instance what BSS is and when it is used compared to Data or where variables in a function declared static are held in memory? I also tried overwriting a text literal out [&#8230;]</p>
The post <a href="https://learncgames.com/added-a-tutorial-on-memory-use-in-c/">Added a tutorial on memory use in C</a> first appeared on <a href="https://learncgames.com">Learn C Games Programming Blog</a>.]]></description>
										<content:encoded><![CDATA[<p><img decoding="async" class="alignleft size-medium wp-image-2776" src="https://learncgames.com/wp-content/uploads/2021/02/ram-98420_640-300x150.png" alt="RAM Board" width="300" height="150" srcset="https://learncgames.com/wp-content/uploads/2021/02/ram-98420_640-300x150.png 300w, https://learncgames.com/wp-content/uploads/2021/02/ram-98420_640.png 640w" sizes="(max-width: 300px) 100vw, 300px" />You can read the tutorial <a title="Link to tutorial on memory use in C" href="https://learncgames.com/tutorials/an-indepth-look-at-memory-use-in-c/" target="_blank" rel="nofollow noopener">here</a>. It looks at the different ways memory is used in a C program. Do you know for instance what BSS is and when it is used compared to Data or where variables in a function declared <strong>static</strong> are held in memory?</p>
<p>I also tried overwriting a text literal out of curiosity to see what happens. Here&#8217;s the source:</p>
<pre><code class="language-c" data-line="">#include&lt;stdio.h&gt;
#include &lt;string.h&gt;

char* name=&quot;My name is David&quot;;
int main()
{    
    strcpy_s(name,10, &quot;New name&quot;);
    printf(&quot;Name = %s\n&quot;, name);
    return 0;
}</code>

</pre>
<p>&nbsp;<br />
As you&#8217;d expect it blew up&#8221;</p>The post <a href="https://learncgames.com/added-a-tutorial-on-memory-use-in-c/">Added a tutorial on memory use in C</a> first appeared on <a href="https://learncgames.com">Learn C Games Programming Blog</a>.]]></content:encoded>
					
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">2787</post-id>	</item>
		<item>
		<title>Raspberry Pi 4B with 8 GB RAM on sale</title>
		<link>https://learncgames.com/raspberry-pi-4b-with-8-gb-ram-on-sale/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=raspberry-pi-4b-with-8-gb-ram-on-sale</link>
		
		<dc:creator><![CDATA[David]]></dc:creator>
		<pubDate>Tue, 02 Jun 2020 23:00:58 +0000</pubDate>
				<category><![CDATA[64-bit]]></category>
		<category><![CDATA[raspberry-pi]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[RAM]]></category>
		<guid isPermaLink="false">https://learncgames.com/?p=725</guid>

					<description><![CDATA[<p>I won&#8217;t be buying one for the moment but I mention it for another reason. 4 GB is the maximum RAM that a 32-bit OS can use, and on the PI like on Windows it&#8217;s actually 3 GB. To be fair you can have two processes each with 3 GB on the 8 GB Pi. [&#8230;]</p>
The post <a href="https://learncgames.com/raspberry-pi-4b-with-8-gb-ram-on-sale/">Raspberry Pi 4B with 8 GB RAM on sale</a> first appeared on <a href="https://learncgames.com">Learn C Games Programming Blog</a>.]]></description>
										<content:encoded><![CDATA[<div class='__iawmlf-post-loop-links' style='display:none;' data-iawmlf-post-links='[{&quot;id&quot;:559,&quot;href&quot;:&quot;https:\/\/pixabay.com\/users\/BenjaminNelan-268798\/?utm_source=link-attribution&amp;utm_medium=referral&amp;utm_campaign=image&amp;utm_content=1719218&quot;,&quot;archived_href&quot;:&quot;http:\/\/web-wp.archive.org\/web\/20251010065837\/https:\/\/pixabay.com\/users\/benjaminnelan-268798\/?utm_source=link-attribution&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2026-02-06 16:07:51&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-02-09 17:00:23&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-02-12 22:35:49&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-02-17 02:13:11&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-02-26 08:26:38&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-03-01 15:07:29&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-03-06 04:00:27&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-03-11 15:32:45&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-03-17 11:47:16&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-03-24 15:45:53&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-03-30 19:12:33&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-04-04 03:02:35&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-04-07 07:19:48&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-04-12 04:23:18&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-04-17 05:32:10&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-04-20 13:11:15&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-04-25 04:16:42&quot;,&quot;http_code&quot;:403}],&quot;broken&quot;:true,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-04-25 04:16:42&quot;,&quot;http_code&quot;:403},&quot;process&quot;:&quot;done&quot;},{&quot;id&quot;:560,&quot;href&quot;:&quot;https:\/\/pixabay.com\/?utm_source=link-attribution&amp;utm_medium=referral&amp;utm_campaign=image&amp;utm_content=1719218&quot;,&quot;archived_href&quot;:&quot;http:\/\/web-wp.archive.org\/web\/20260205102120\/https:\/\/pixabay.com\/?utm_source=link-attribution&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2026-02-06 16:07:53&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-02-09 17:00:23&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-02-17 02:13:11&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-02-26 08:26:38&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-03-01 15:07:29&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-03-06 04:00:27&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-03-11 15:32:45&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-03-17 11:47:16&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-03-24 15:45:53&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-03-30 19:12:33&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-04-04 03:02:35&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-04-07 07:19:49&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-04-12 04:23:19&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-04-17 05:32:09&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-04-20 13:11:13&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-04-25 08:05:20&quot;,&quot;http_code&quot;:403}],&quot;broken&quot;:true,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-04-25 08:05:20&quot;,&quot;http_code&quot;:403},&quot;process&quot;:&quot;done&quot;},{&quot;id&quot;:681,&quot;href&quot;:&quot;https:\/\/www.raspberrypi.org\/blog\/8gb-raspberry-pi-4-on-sale-now-at-75&quot;,&quot;archived_href&quot;:&quot;http:\/\/web-wp.archive.org\/web\/20211005232152\/https:\/\/www.raspberrypi.org\/blog\/8gb-raspberry-pi-4-on-sale-now-at-75\/&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2026-02-06 17:34:24&quot;,&quot;http_code&quot;:503},{&quot;date&quot;:&quot;2026-02-10 06:26:36&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-02-17 02:13:15&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-02-21 19:04:09&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-02-26 08:26:40&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-03-01 15:07:27&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-03-06 04:00:29&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-03-11 15:32:45&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-03-17 11:47:17&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-03-24 08:20:45&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-03-30 19:12:34&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-04-04 03:02:37&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-04-07 07:19:46&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-04-12 04:23:20&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-04-15 19:34:33&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-04-20 11:09:48&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-04-25 04:16:42&quot;,&quot;http_code&quot;:403}],&quot;broken&quot;:true,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-04-25 04:16:42&quot;,&quot;http_code&quot;:403},&quot;process&quot;:&quot;done&quot;},{&quot;id&quot;:697,&quot;href&quot;:&quot;https:\/\/www.raspberrypi.org\/forums\/viewtopic.php?f=117&amp;t=275370&quot;,&quot;archived_href&quot;:&quot;&quot;,&quot;redirect_href&quot;:&quot;https:\/\/forums.raspberrypi.com\/viewtopic.php?f=117&quot;,&quot;checks&quot;:[],&quot;broken&quot;:false,&quot;last_checked&quot;:null,&quot;process&quot;:&quot;done&quot;},{&quot;id&quot;:698,&quot;href&quot;:&quot;https:\/\/hackaday.com\/2020\/01\/28\/raspberry-pi-4-benchmarks-32-vs-64-bits&quot;,&quot;archived_href&quot;:&quot;http:\/\/web-wp.archive.org\/web\/20251209044155\/https:\/\/hackaday.com\/2020\/01\/28\/raspberry-pi-4-benchmarks-32-vs-64-bits\/&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2026-02-06 17:35:25&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-10 06:26:35&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-17 02:13:12&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-26 08:26:39&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-01 15:07:30&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-06 04:00:27&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-11 15:32:45&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-17 11:47:16&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-24 15:45:54&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-30 19:12:33&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-04 03:02:35&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-07 07:19:48&quot;,&quot;http_code&quot;:503},{&quot;date&quot;:&quot;2026-04-12 04:23:19&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-17 05:32:12&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-20 13:11:14&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-25 04:16:42&quot;,&quot;http_code&quot;:200}],&quot;broken&quot;:false,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-04-25 04:16:42&quot;,&quot;http_code&quot;:200},&quot;process&quot;:&quot;done&quot;},{&quot;id&quot;:699,&quot;href&quot;:&quot;https:\/\/dietpi.com\/phpbb\/viewtopic.php?p=23153&quot;,&quot;archived_href&quot;:&quot;http:\/\/web-wp.archive.org\/web\/20210119062023\/https:\/\/dietpi.com\/phpbb\/viewtopic.php?p=23153&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2026-02-06 17:35:30&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-10 06:26:37&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-17 02:13:12&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-26 08:26:41&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-01 15:07:31&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-06 04:00:30&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-11 15:32:46&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-17 11:47:18&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-24 15:45:56&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-30 19:12:37&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-04 03:02:39&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-09 23:05:01&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-14 02:53:11&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-17 11:55:57&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-20 13:11:17&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-25 04:16:44&quot;,&quot;http_code&quot;:200}],&quot;broken&quot;:false,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-04-25 04:16:44&quot;,&quot;http_code&quot;:200},&quot;process&quot;:&quot;done&quot;}]'></div>
<figure id="attachment_638" aria-describedby="caption-attachment-638" style="width: 300px" class="wp-caption alignleft"><img fetchpriority="high" decoding="async" class="size-medium wp-image-638" src="https://learncgames.com/wp-content/uploads/2020/05/raspberry-pi-1719218_640-300x175.jpg" alt="Raspberry-Pi" width="300" height="175" srcset="https://learncgames.com/wp-content/uploads/2020/05/raspberry-pi-1719218_640-300x175.jpg 300w, https://learncgames.com/wp-content/uploads/2020/05/raspberry-pi-1719218_640.jpg 640w" sizes="(max-width: 300px) 100vw, 300px" /><figcaption id="caption-attachment-638" class="wp-caption-text">Image by <a href="https://pixabay.com/users/BenjaminNelan-268798/?utm_source=link-attribution&amp;utm_medium=referral&amp;utm_campaign=image&amp;utm_content=1719218">Benjamin Nelan</a> from <a href="https://pixabay.com/?utm_source=link-attribution&amp;utm_medium=referral&amp;utm_campaign=image&amp;utm_content=1719218">Pixabay</a></figcaption></figure>
<p>I won&#8217;t be buying one for the moment but I mention it for another reason. 4 GB is the maximum RAM that a 32-bit OS can use, and on the PI like on Windows it&#8217;s actually 3 GB. To be fair you can have two processes each with 3 GB on the 8 GB Pi.</p>
<p>The <a title="Link to RaspberryPi announcement about 8GB Pi" href="https://www.raspberrypi.org/blog/8gb-raspberry-pi-4-on-sale-now-at-75/" target="_blank" rel="nofollow noopener noreferrer">announcement</a> did mention that a beta 64-bit Raspbian OS is available for download and it&#8217;s <a title="Link to 64-bit Raspberry Pi OS (beta)" href="https://www.raspberrypi.org/forums/viewtopic.php?f=117&amp;t=275370" target="_blank" rel="noopener noreferrer">here</a>. <a title="Link to 32-bit vs 64-bit speed comparison" href="https://hackaday.com/2020/01/28/raspberry-pi-4-benchmarks-32-vs-64-bits/" target="_blank" rel="noopener noreferrer">This article</a> shows that the 64-bit Os they tested is faster on the Pi than 32-bit.  This <a title="Link to DietPi forum on enabling 64-bit" href="https://dietpi.com/phpbb/viewtopic.php?p=23153" target="_blank" rel="nofollow noopener noreferrer">link</a> to the DietPi forum tells you how to boot dietpi into 64-bit.</p>
<p>It&#8217;s to be hoped that 64-bit ARM development software will become available. Clang and gcc should be but I&#8217;m thinking of the code.headmelted.com version of Visual Studio Code.</p>
<p>As always if you are buying a Raspberry Pi 4B, I strongly suggest you get a case with a fan. They are not expensive and do make a difference. Despite running the Asteroids game, which is pretty intense, I have never got my 4B temperature above 51C. THat said I&#8217;ve ordered a touchscreen with a case for a 4B on the back and it doesn&#8217;t seem to take a fan. So it will be interesting to see what its like fanless. More on that when the touchscreen arrives.</p>
<p>&nbsp;</p>The post <a href="https://learncgames.com/raspberry-pi-4b-with-8-gb-ram-on-sale/">Raspberry Pi 4B with 8 GB RAM on sale</a> first appeared on <a href="https://learncgames.com">Learn C Games Programming Blog</a>.]]></content:encoded>
					
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">725</post-id>	</item>
	</channel>
</rss>
