<?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>blog.chrugail.ch &#187; Code</title>
	<atom:link href="http://blog.chrugail.ch/category/code/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.chrugail.ch</link>
	<description></description>
	<lastBuildDate>Sat, 10 Dec 2011 09:50:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Code-Schnipsel VI</title>
		<link>http://blog.chrugail.ch/2009/05/27/code-schnipsel-vi/</link>
		<comments>http://blog.chrugail.ch/2009/05/27/code-schnipsel-vi/#comments</comments>
		<pubDate>Wed, 27 May 2009 14:45:59 +0000</pubDate>
		<dc:creator>chrugail</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Programmieren]]></category>

		<guid isPermaLink="false">http://blog.chrugail.ch/?p=126</guid>
		<description><![CDATA[In welcher Sprache wurde dieses Hallo Welt verfasst? 12345678910111213141516171819202122# Kompilieren mit &#34;as -o hallo.o hallo.s; ld -o hallo hallo.o&#34; &#160; &#160;.section .data &#160; s: .ascii &#34;Hallo Welt!\n&#34; &#160; &#160;.section .text &#160; &#160;.globl _start &#160; _start: &#160; &#160;movl $4,%eax &#160; &#160; &#160; # Syscall-ID 4 &#40;= __NR_write&#41; &#160; &#160;movl $1,%ebx &#160; &#160; &#160; # Ausgabe-Filedeskriptor STDOUT [...]]]></description>
			<content:encoded><![CDATA[<p>In welcher Sprache wurde dieses Hallo Welt verfasst?</p>
<div class="codecolorer-container asm mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:300px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br /></div></td><td><div class="asm codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># Kompilieren mit <span style="color: #7f007f;">&quot;as -o hallo.o hallo.s; ld -o hallo hallo.o&quot;</span><br />
&nbsp; &nbsp;<span style="color: #339933;">.</span><span style="color: #000000; font-weight: bold;">section</span> <span style="color: #000000; font-weight: bold;">.data</span><br />
&nbsp; s<span style="color: #339933;">:</span> <span style="color: #339933;">.</span>ascii <span style="color: #7f007f;">&quot;Hallo Welt!\n&quot;</span><br />
&nbsp; &nbsp;<span style="color: #339933;">.</span><span style="color: #000000; font-weight: bold;">section</span> <span style="color: #339933;">.</span>text<br />
&nbsp; &nbsp;<span style="color: #339933;">.</span>globl _start<br />
&nbsp; _start<span style="color: #339933;">:</span><br />
&nbsp; &nbsp;movl $<span style="color: #0000ff;">4</span><span style="color: #339933;">,%</span><span style="color: #00007f;">eax</span> &nbsp; &nbsp; &nbsp;<br />
# <span style="color: #000000; font-weight: bold;">Syscall</span><span style="color: #339933;">-</span>ID <span style="color: #0000ff;">4</span> <span style="color: #009900; font-weight: bold;">&#40;</span>= __NR_write<span style="color: #009900; font-weight: bold;">&#41;</span> <br />
&nbsp; &nbsp;movl $<span style="color: #0000ff;">1</span><span style="color: #339933;">,%</span><span style="color: #00007f;">ebx</span> &nbsp; &nbsp; &nbsp;<br />
# Ausgabe<span style="color: #339933;">-</span>Filedeskriptor STDOUT <span style="color: #009900; font-weight: bold;">&#40;</span>= <span style="color: #0000ff;">1</span><span style="color: #009900; font-weight: bold;">&#41;</span><br />
&nbsp; &nbsp;movl $s<span style="color: #339933;">,%</span><span style="color: #00007f;">ecx</span> &nbsp; &nbsp; &nbsp;<br />
# Adresse des ersten Zeichens der Zeichenkette<br />
&nbsp; &nbsp;movl $<span style="color: #0000ff;">12</span><span style="color: #339933;">,%</span><span style="color: #00007f;">edx</span> &nbsp; &nbsp; <br />
# Länge der Zeichenkette <span style="color: #009900; font-weight: bold;">&#40;</span><span style="color: #0000ff;">12</span> Zeichen<span style="color: #009900; font-weight: bold;">&#41;</span><br />
&nbsp; &nbsp;<span style="color: #00007f; font-weight: bold;">int</span> $<span style="color: #0000ff;">0x80</span> &nbsp; &nbsp; &nbsp; &nbsp; <br />
# Softwareinterrupt <span style="color: #0000ff;">0x80</span> um <span style="color: #000000; font-weight: bold;">Syscall</span> <span style="color: #009900; font-weight: bold;">&#40;</span>write<span style="color: #009900; font-weight: bold;">&#40;</span><span style="color: #0000ff;">1</span><span style="color: #339933;">,</span>s<span style="color: #339933;">,</span><span style="color: #0000ff;">12</span><span style="color: #009900; font-weight: bold;">&#41;</span><span style="color: #009900; font-weight: bold;">&#41;</span>auszuführen<br />
&nbsp; &nbsp;movl $<span style="color: #0000ff;">1</span><span style="color: #339933;">,%</span><span style="color: #00007f;">eax</span> &nbsp; &nbsp; &nbsp;<br />
# <span style="color: #000000; font-weight: bold;">Syscall</span><span style="color: #339933;">-</span>ID <span style="color: #0000ff;">1</span> <span style="color: #009900; font-weight: bold;">&#40;</span>= __NR_exit<span style="color: #009900; font-weight: bold;">&#41;</span><br />
&nbsp; &nbsp;movl $<span style="color: #0000ff;">0</span><span style="color: #339933;">,%</span><span style="color: #00007f;">ebx</span> &nbsp; &nbsp; &nbsp;<br />
# Rückgabewert <span style="color: #0000ff;">0</span> <span style="color: #009900; font-weight: bold;">&#40;</span>= alles ok<span style="color: #009900; font-weight: bold;">&#41;</span><br />
&nbsp; &nbsp;<span style="color: #00007f; font-weight: bold;">int</span> $<span style="color: #0000ff;">0x80</span> &nbsp; &nbsp; &nbsp; &nbsp; <br />
# Softwareinterrupt <span style="color: #0000ff;">0x80</span> um <span style="color: #000000; font-weight: bold;">Syscall</span> <span style="color: #009900; font-weight: bold;">&#40;</span><span style="color: #000000; font-weight: bold;">exit</span><span style="color: #009900; font-weight: bold;">&#40;</span><span style="color: #0000ff;">0</span><span style="color: #009900; font-weight: bold;">&#41;</span><span style="color: #009900; font-weight: bold;">&#41;</span> auszuführen</div></td></tr></tbody></table></div>
]]></content:encoded>
			<wfw:commentRss>http://blog.chrugail.ch/2009/05/27/code-schnipsel-vi/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Code-Schnipsel V</title>
		<link>http://blog.chrugail.ch/2009/05/25/code-schnipsel-v/</link>
		<comments>http://blog.chrugail.ch/2009/05/25/code-schnipsel-v/#comments</comments>
		<pubDate>Mon, 25 May 2009 09:00:29 +0000</pubDate>
		<dc:creator>chrugail</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Programmieren]]></category>

		<guid isPermaLink="false">http://blog.chrugail.ch/?p=98</guid>
		<description><![CDATA[In welcher Sprache ist dieses Hello World geschrieben? 1echo Hallo Welt!]]></description>
			<content:encoded><![CDATA[<p>In welcher Sprache ist dieses Hello World geschrieben?</p>
<div class="codecolorer-container text mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">echo Hallo Welt!</div></td></tr></tbody></table></div>
]]></content:encoded>
			<wfw:commentRss>http://blog.chrugail.ch/2009/05/25/code-schnipsel-v/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Code-Schipsel IV</title>
		<link>http://blog.chrugail.ch/2009/05/22/code-schipsel-iv/</link>
		<comments>http://blog.chrugail.ch/2009/05/22/code-schipsel-iv/#comments</comments>
		<pubDate>Fri, 22 May 2009 09:03:59 +0000</pubDate>
		<dc:creator>chrugail</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Programmieren]]></category>

		<guid isPermaLink="false">http://blog.chrugail.ch/?p=101</guid>
		<description><![CDATA[In welcher Sprache wurde dieses &#8220;Hello World&#8221; geschrieben? 1234567public class Hallo &#123; &#160; public static void main&#40;String&#91;&#93; args&#41; &#160; &#123; &#160; &#160; System.out.println&#40;&#34;Hallo Welt!&#34;&#41;; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#125; &#125;]]></description>
			<content:encoded><![CDATA[<p>In welcher Sprache wurde dieses &#8220;Hello World&#8221; geschrieben?</p>
<div class="codecolorer-container java mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br /></div></td><td><div class="java codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">class</span> Hallo <br />
<span style="color: #009900;">&#123;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">static</span> <span style="color: #000066; font-weight: bold;">void</span> main<span style="color: #009900;">&#40;</span><a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">String</span></a><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> args<span style="color: #009900;">&#41;</span> <br />
&nbsp; <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Asystem+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">System</span></a>.<span style="color: #006633;">out</span>.<span style="color: #006633;">println</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Hallo Welt!&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />
&nbsp; <span style="color: #009900;">&#125;</span><br />
<span style="color: #009900;">&#125;</span></div></td></tr></tbody></table></div>
]]></content:encoded>
			<wfw:commentRss>http://blog.chrugail.ch/2009/05/22/code-schipsel-iv/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Code-Schnipsel III</title>
		<link>http://blog.chrugail.ch/2009/05/18/code-schnipsel-iii/</link>
		<comments>http://blog.chrugail.ch/2009/05/18/code-schnipsel-iii/#comments</comments>
		<pubDate>Mon, 18 May 2009 07:41:36 +0000</pubDate>
		<dc:creator>chrugail</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Programmieren]]></category>

		<guid isPermaLink="false">http://blog.chrugail.ch/?p=80</guid>
		<description><![CDATA[In welcher Sprache wurde dieses &#8220;Hello World&#8221; geschrieben? 123&#60;?--Zensurbalken-- &#160; &#160; print &#40;&#34;Hallo Welt!&#34;&#41;; ?&#62;]]></description>
			<content:encoded><![CDATA[<p>In welcher Sprache wurde dieses &#8220;Hello World&#8221; geschrieben?</p>
<div class="codecolorer-container php mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">&lt;?</span><span style="color: #339933;">--</span>Zensurbalken<span style="color: #339933;">--</span><br />
&nbsp; &nbsp; <span style="color: #b1b100;">print</span> <span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Hallo Welt!&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #000000; font-weight: bold;">?&gt;</span></div></td></tr></tbody></table></div>
]]></content:encoded>
			<wfw:commentRss>http://blog.chrugail.ch/2009/05/18/code-schnipsel-iii/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Code-Schnipsel II</title>
		<link>http://blog.chrugail.ch/2009/05/12/code-schnipsel-ii/</link>
		<comments>http://blog.chrugail.ch/2009/05/12/code-schnipsel-ii/#comments</comments>
		<pubDate>Tue, 12 May 2009 10:47:03 +0000</pubDate>
		<dc:creator>chrugail</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Programmieren]]></category>

		<guid isPermaLink="false">http://blog.chrugail.ch/?p=62</guid>
		<description><![CDATA[In welcher Programmiersprache ist dieses Hello-World verfasst? 1234567#include &#60;stdio.h&#62; &#160; int main&#40;void&#41; &#123; &#160; &#160; printf&#40;&#34;Hallo Welt!\n&#34;&#41;; &#160; &#160; return 0; &#125;]]></description>
			<content:encoded><![CDATA[<p>In welcher Programmiersprache ist dieses Hello-World verfasst?</p>
<div class="codecolorer-container c mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br /></div></td><td><div class="c codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #339933;">#include &lt;stdio.h&gt;</span><br />
&nbsp;<br />
<span style="color: #993333;">int</span> main<span style="color: #009900;">&#40;</span><span style="color: #993333;">void</span><span style="color: #009900;">&#41;</span><br />
<span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; <a href="http://www.opengroup.org/onlinepubs/009695399/functions/printf.html"><span style="color: #000066;">printf</span></a><span style="color: #009900;">&#40;</span><span style="color: #ff0000;">&quot;Hallo Welt!<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #b1b100;">return</span> <span style="color: #0000dd;">0</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span></div></td></tr></tbody></table></div>
]]></content:encoded>
			<wfw:commentRss>http://blog.chrugail.ch/2009/05/12/code-schnipsel-ii/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Code-Schnipsel I</title>
		<link>http://blog.chrugail.ch/2009/05/09/code-schnipsel-i/</link>
		<comments>http://blog.chrugail.ch/2009/05/09/code-schnipsel-i/#comments</comments>
		<pubDate>Sat, 09 May 2009 17:15:37 +0000</pubDate>
		<dc:creator>chrugail</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Programmieren]]></category>

		<guid isPermaLink="false">http://blog.chrugail.ch/?p=30</guid>
		<description><![CDATA[Wer von euch weiss, in welcher Sprache das kleine Code-Schnipsel geschrieben wurde: 123456program HalloWelt; {$APPTYPE CONSOLE} begin writeln&#40;'Hallo Welt!'&#41;; end.]]></description>
			<content:encoded><![CDATA[<p>Wer von euch weiss, in welcher Sprache das kleine Code-Schnipsel geschrieben wurde:</p>
<div class="codecolorer-container delphi mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br /></div></td><td><div class="delphi codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">program</span> HalloWelt<span style="color: #000066;">;</span><br />
<span style="color: #008000; font-style: italic;">{$APPTYPE CONSOLE}</span><br />
<br />
<span style="color: #000000; font-weight: bold;">begin</span><br />
<span style="color: #000066;">writeln</span><span style="color: #000066;">&#40;</span><span style="color: #ff0000;">'Hallo Welt!'</span><span style="color: #000066;">&#41;</span><span style="color: #000066;">;</span><br />
<span style="color: #000000; font-weight: bold;">end</span><span style="color: #000066;">.</span></div></td></tr></tbody></table></div>
]]></content:encoded>
			<wfw:commentRss>http://blog.chrugail.ch/2009/05/09/code-schnipsel-i/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

