<?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>EmbLogic &#187; bishan</title>
	<atom:link href="https://www.emblogic.com/blog/author/bishan/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.emblogic.com/blog</link>
	<description>Embedded System and ARM Training</description>
	<lastBuildDate>Tue, 03 Mar 2020 13:00:06 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.9.1</generator>
	<item>
		<title>Toolchain help!!!</title>
		<link>https://www.emblogic.com/blog/10/toolchain-help/</link>
		<comments>https://www.emblogic.com/blog/10/toolchain-help/#comments</comments>
		<pubDate>Wed, 19 Oct 2011 21:33:54 +0000</pubDate>
		<dc:creator><![CDATA[bishan]]></dc:creator>
				<category><![CDATA[Embedded Linux]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://emblogic.org/blog/?p=1157</guid>
		<description><![CDATA[Hi, I am working on cross development toolchain. I used packages binutils-2.10.1, gcc-2.95.3, glibc-2.2.4, glibc-linux-threads-2.2.4, kernel-2.4.17. (most common packages for building toolchain) I followed book &#8220;Building Embedded Linux Systems (OReilly 2003) &#8211; chapter 4&#8243; and finally i am able to &#8230; <a href="https://www.emblogic.com/blog/10/toolchain-help/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>Hi,</p>
<p>I am working on cross development toolchain. I used packages binutils-2.10.1, gcc-2.95.3, glibc-2.2.4, glibc-linux-threads-2.2.4, kernel-2.4.17. (most common packages for building toolchain)</p>
<p>I followed book &#8220;Building Embedded Linux Systems (OReilly 2003) &#8211; chapter 4&#8243; and finally i am able to compile all the above packages without any errors and did everything till section 4.2.7.</p>
<p>I was not able to understand section 4.2.8 (something related to makefile), is it important ? and how can i check whether I have successfully build a working toolchain.</p>
<p>One more thing, I wrote a hello world program, and compiled it with<br />
#arm-linux-gcc 1.c<br />
it created a a.out file without any errors. Does this signifies that i have successfully build a working toolchain ? because I can&#8217;t run a.out file on my host, I need a target system to run a.out on it.</p>
<p>Regards<br />
Bishan Preet Singh</p>
]]></content:encoded>
			<wfw:commentRss>https://www.emblogic.com/blog/10/toolchain-help/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>FILE I/O</title>
		<link>https://www.emblogic.com/blog/07/file-io/</link>
		<comments>https://www.emblogic.com/blog/07/file-io/#comments</comments>
		<pubDate>Sat, 02 Jul 2011 11:32:31 +0000</pubDate>
		<dc:creator><![CDATA[bishan]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://emblogic.org/blog/?p=777</guid>
		<description><![CDATA[// // Reading a txt File using Pointers // #include&#60;stdio.h&#62; #include&#60;stdlib.h&#62;   // Header File For malloc FILE *fptr; char *ch; int ret,ret2; int main() { printf(&#8220;\n&#8221;); fptr = fopen(&#8220;f1.txt&#8221;,&#8221;r&#8221;); if (fptr == NULL) { printf(&#8220;Error Opening File&#8221;); } else    &#8230; <a href="https://www.emblogic.com/blog/07/file-io/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>//<br />
// Reading a txt File using Pointers<br />
//<br />
#include&lt;stdio.h&gt;<br />
#include&lt;stdlib.h&gt;   // Header File For malloc<br />
FILE *fptr;<br />
char *ch;<br />
int ret,ret2;<br />
int main()<br />
{<br />
printf(&#8220;\n&#8221;);<br />
fptr = fopen(&#8220;f1.txt&#8221;,&#8221;r&#8221;);<br />
if (fptr == NULL)<br />
{<br />
printf(&#8220;Error Opening File&#8221;);<br />
}<br />
else     {<br />
printf(&#8220;File Found&#8221;);<br />
}</p>
<p>fseek(fptr,0,SEEK_END);<br />
ret2 = ftell(fptr);<br />
ch =(char *) malloc(ret2);<br />
fseek(fptr,0,SEEK_SET);<br />
printf(&#8220;\n%d bytes of data is present in the file\n&#8221;,ret2);<br />
ret = fread(ch,1,ret2,fptr);<br />
printf(&#8220;\nData in File :\n%s&#8221;,ch);<br />
printf(&#8220;\nNo of Characters read from File : %d&#8221;,ret);<br />
printf(&#8220;\n\n&#8221;);<br />
return 0;<br />
}</p>
<p>Code is working fine&#8230; but the problem is it still works with</p>
<p>ch =(char *) malloc(1);</p>
<p>Why ???</p>
]]></content:encoded>
			<wfw:commentRss>https://www.emblogic.com/blog/07/file-io/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
