<?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>portability | Learn C Games Programming Blog</title>
	<atom:link href="https://learncgames.com/tag/portability/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>Wed, 01 Feb 2023 11:12:09 +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>portability | 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>Is C a portable language?</title>
		<link>https://learncgames.com/is-c-a-portable-language/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=is-c-a-portable-language</link>
		
		<dc:creator><![CDATA[David]]></dc:creator>
		<pubDate>Thu, 02 Feb 2023 00:01:59 +0000</pubDate>
				<category><![CDATA[C]]></category>
		<category><![CDATA[portability]]></category>
		<guid isPermaLink="false">https://learncgames.com/?p=3202</guid>

					<description><![CDATA[<p>I occasionally write answers on Quora.com and many recurring questions are about assembly language. Now I used to write games in 6502 and Z80 assembly language when the only alternative was Basic. But assembly language is very tedious to write, painstaking and it&#8217;s slow to write programs in assembly language. Most of your code is [&#8230;]</p>
The post <a href="https://learncgames.com/is-c-a-portable-language/">Is C a portable language?</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;:33,&quot;href&quot;:&quot;https:\/\/en.wikibooks.org\/wiki\/Portability_and_the_C_Language&quot;,&quot;archived_href&quot;:&quot;http:\/\/web-wp.archive.org\/web\/20260206110747\/https:\/\/en.wikibooks.org\/wiki\/Portability_and_the_C_Language&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2026-02-12 06:07:48&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-18 01:41:48&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-22 16:09:50&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-27 16:40:13&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-07 18:00:40&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-12 08:07:12&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-15 12:32:58&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-21 20:48:49&quot;,&quot;http_code&quot;:429},{&quot;date&quot;:&quot;2026-03-26 15:03:44&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-30 22:54:59&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-05 01:59:20&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-11 05:10:01&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-15 01:42:42&quot;,&quot;http_code&quot;:429}],&quot;broken&quot;:false,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-04-15 01:42:42&quot;,&quot;http_code&quot;:429},&quot;process&quot;:&quot;done&quot;}]'></div>
<p><img fetchpriority="high" decoding="async" class="alignleft size-medium wp-image-3203" src="https://learncgames.com/wp-content/uploads/2023/02/e2qx9ed2qiq-300x300.jpg" alt="brown and black suitcase with red and yellow plastic toy" width="300" height="300" srcset="https://learncgames.com/wp-content/uploads/2023/02/e2qx9ed2qiq-300x300.jpg 300w, https://learncgames.com/wp-content/uploads/2023/02/e2qx9ed2qiq-1024x1024.jpg 1024w, https://learncgames.com/wp-content/uploads/2023/02/e2qx9ed2qiq-150x150.jpg 150w, https://learncgames.com/wp-content/uploads/2023/02/e2qx9ed2qiq-768x768.jpg 768w, https://learncgames.com/wp-content/uploads/2023/02/e2qx9ed2qiq-250x250.jpg 250w, https://learncgames.com/wp-content/uploads/2023/02/e2qx9ed2qiq.jpg 1200w" sizes="(max-width: 300px) 100vw, 300px" />I occasionally write answers on Quora.com and many recurring questions are about assembly language. Now I used to write games in 6502 and Z80 assembly language when the only alternative was Basic. But assembly language is very tedious to write, painstaking and it&#8217;s slow to write programs in assembly language. Most of your code is moving values between memory and registers or vice versa.</p>
<p>Anything major you write will not easily port onto a different CPU or Operating System. A Mac uses a different CPU to most Windows PCs and a Raspberry Pi uses a similar CPU design to a Mac (M1 or M2) but there are still differences in calling OS routines on Raspberry Pi OS (based on Debian) and Mac OS.</p>
<p>Higher level languages are generally portable. I&#8217;ve written C# code that runs on Linux and my game which was 2,200 lines of C needed about an hours work to run on Ubuntu Linux and Raspberry Pi.</p>
<p>But if you have a large complex C application, it may have issues when porting it.  A developer Rex Jaeschke wrote a book on portability and published it in 1989. He&#8217;s recently updated it and it&#8217;s available on Wikibooks.  It&#8217;s called <a title="Link to Portability and the C language eBook on Wikibooks" href="https://en.wikibooks.org/wiki/Portability_and_the_C_Language" target="_blank" rel="noopener">Portability and the C language</a> and is several hundred pages long. If you ever want to port C, it is very worthwhile reading. I&#8217;ve added a permanent link to the Link to C utilities page.</p>
<p>&nbsp;</p>The post <a href="https://learncgames.com/is-c-a-portable-language/">Is C a portable language?</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">3202</post-id>	</item>
	</channel>
</rss>
