<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>C on ilikeorangutans</title><link>https://kuelzer.ca/tags/c/</link><description>Recent content in C on ilikeorangutans</description><generator>Hugo</generator><language>en</language><copyright>© 2026 Jakob Külzer</copyright><lastBuildDate>Sun, 12 Apr 2026 14:27:24 -0400</lastBuildDate><atom:link href="https://kuelzer.ca/tags/c/index.xml" rel="self" type="application/rss+xml"/><item><title>Writing an Operating System - Environment Setup</title><link>https://kuelzer.ca/posts/2015/10/26/writing-an-operating-system-cross-compiler-setup/</link><pubDate>Mon, 26 Oct 2015 13:59:40 -0400</pubDate><guid>https://kuelzer.ca/posts/2015/10/26/writing-an-operating-system-cross-compiler-setup/</guid><description>&lt;p&gt;I&amp;rsquo;ve been reading &lt;a href="http://littleosbook.github.io/"&gt;The little book about OS development&lt;/a&gt; and &lt;a href="http://wiki.osdev.org/"&gt;wiki.osdev.org&lt;/a&gt; and took some notes along the line. Here&amp;rsquo;s what I wrote on environment setup.&lt;/p&gt;
&lt;h3 id="environment-setup"&gt;Environment setup&lt;/h3&gt;
&lt;p&gt;You&amp;rsquo;ll need a cross compile toolchain consisting of &lt;a href="https://www.gnu.org/software/binutils/"&gt;GNU Binutils&lt;/a&gt; and &lt;a href="https://gcc.gnu.org/"&gt;gcc&lt;/a&gt;. The &lt;a href="http://wiki.osdev.org/GCC_Cross-Compiler"&gt;osdev wiki&lt;/a&gt; has a great page on setting up a cross compilation toolchain.&lt;/p&gt;
&lt;p&gt;It took me a few times because I didn&amp;rsquo;t read the instructions properly. It is important to unpack the sources for binutils and gcc and have separate build directories, &lt;code&gt;gcc-4.2&lt;/code&gt; and &lt;code&gt;gcc-build&lt;/code&gt; for example. Then, for building gcc, make sure the newly built binutils are on your path.&lt;/p&gt;</description></item></channel></rss>