<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
	
	>
<channel>
	<title>Comments on: how to know your system is little endian or big endian&#8230;&#8230;&#8230;..?</title>
	<atom:link href="https://www.emblogic.com/blog/10/how-to-know-your-system-is-little-endian-or-big-endian/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.emblogic.com/blog/10/how-to-know-your-system-is-little-endian-or-big-endian/</link>
	<description>Embedded System and ARM Training</description>
	<lastBuildDate>Mon, 07 Oct 2013 04:00:03 +0000</lastBuildDate>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.9.1</generator>
	<item>
		<title>By: kamran</title>
		<link>https://www.emblogic.com/blog/10/how-to-know-your-system-is-little-endian-or-big-endian/#comment-313</link>
		<dc:creator><![CDATA[kamran]]></dc:creator>
		<pubDate>Fri, 07 Oct 2011 06:16:27 +0000</pubDate>
		<guid isPermaLink="false">http://emblogic.org/blog/?p=954#comment-313</guid>
		<description><![CDATA[For little endian lower-order byte of the number is stored in memory at the lowest address and for big endian higher-order byte is stored at lowest address.


#include
#define BIG_ENDIAN 0
#define LITTLE_ENDIAN 1

int main()
{
int value;
value = endian();
if (value == 1)
printf(&quot;Little endian\n&quot;);
else
printf(&quot;big endian\n&quot;);
return 0;
}

int endian() {
short int word = 0x0001;
char *byte = (char *) &amp;word;
return (byte[0] ? LITTLE_ENDIAN : BIG_ENDIAN);
}]]></description>
		<content:encoded><![CDATA[<p>For little endian lower-order byte of the number is stored in memory at the lowest address and for big endian higher-order byte is stored at lowest address.</p>
<p>#include<br />
#define BIG_ENDIAN 0<br />
#define LITTLE_ENDIAN 1</p>
<p>int main()<br />
{<br />
int value;<br />
value = endian();<br />
if (value == 1)<br />
printf(&#8220;Little endian\n&#8221;);<br />
else<br />
printf(&#8220;big endian\n&#8221;);<br />
return 0;<br />
}</p>
<p>int endian() {<br />
short int word = 0&#215;0001;<br />
char *byte = (char *) &amp;word;<br />
return (byte[0] ? LITTLE_ENDIAN : BIG_ENDIAN);<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kuldeep Dhanotia</title>
		<link>https://www.emblogic.com/blog/10/how-to-know-your-system-is-little-endian-or-big-endian/#comment-308</link>
		<dc:creator><![CDATA[Kuldeep Dhanotia]]></dc:creator>
		<pubDate>Wed, 05 Oct 2011 09:07:06 +0000</pubDate>
		<guid isPermaLink="false">http://emblogic.org/blog/?p=954#comment-308</guid>
		<description><![CDATA[Thaks to every one but
i want the  c program that show the system architecture is little or big endian]]></description>
		<content:encoded><![CDATA[<p>Thaks to every one but<br />
i want the  c program that show the system architecture is little or big endian</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: spatlou</title>
		<link>https://www.emblogic.com/blog/10/how-to-know-your-system-is-little-endian-or-big-endian/#comment-299</link>
		<dc:creator><![CDATA[spatlou]]></dc:creator>
		<pubDate>Tue, 04 Oct 2011 06:41:13 +0000</pubDate>
		<guid isPermaLink="false">http://emblogic.org/blog/?p=954#comment-299</guid>
		<description><![CDATA[ARM processors could work in both modes either little and big endian.
In the ARM9TDMI, the &quot;BIGEND&quot; can be set (0 or 1) for instruction and data fetches...but only affect 16bit or 8bit fetches, while leaving the 32-bit word access unaffected.]]></description>
		<content:encoded><![CDATA[<p>ARM processors could work in both modes either little and big endian.<br />
In the ARM9TDMI, the &#8220;BIGEND&#8221; can be set (0 or 1) for instruction and data fetches&#8230;but only affect 16bit or 8bit fetches, while leaving the 32-bit word access unaffected.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mandeesh Singh</title>
		<link>https://www.emblogic.com/blog/10/how-to-know-your-system-is-little-endian-or-big-endian/#comment-294</link>
		<dc:creator><![CDATA[Mandeesh Singh]]></dc:creator>
		<pubDate>Mon, 03 Oct 2011 19:35:04 +0000</pubDate>
		<guid isPermaLink="false">http://emblogic.org/blog/?p=954#comment-294</guid>
		<description><![CDATA[It&#039;s entirely dependent on the Processor architecture. 
Commonly used Examples : -
Big Endian : Motorola 6800, IBM Power
Little Endian :x86, x86-64, 8051 etc
Well just to share more. There&#039;s another category that is : Bi-Endian which can behave as either of the two categories mentioned above. Most Important example is ARM, Power PC or MIPS.]]></description>
		<content:encoded><![CDATA[<p>It&#8217;s entirely dependent on the Processor architecture.<br />
Commonly used Examples : -<br />
Big Endian : Motorola 6800, IBM Power<br />
Little Endian :x86, x86-64, 8051 etc<br />
Well just to share more. There&#8217;s another category that is : Bi-Endian which can behave as either of the two categories mentioned above. Most Important example is ARM, Power PC or MIPS.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
