<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
Where do you get 246kB for the hex file? Is that the size of the
file itself? <br>
In that case you can expect it to be a little more than double the
size of the actual code, because it's in Motorola S-REC format,
which has the whole code in ASCII hex, where you need two characters
for each byte of code.<br>
<br>
What you see underneath "dec" is the base 10 representation of the
code size. I see 130,328 bytes for the .exe and 122,573 for the hex.
This is the size you should be worried about for downloading code
into ROM, right? And the exe should just barely fit into 128kB
(131072 bytes).<br>
<br>
I wonder if there is any issue with the lack of text and bss
sections when you convert to hex.. maybe somebody else will know
about that.<br>
<br>
<br>
Steve<br>
<br>
On 07/06/2011 01:31 PM, S Akhtar wrote:
<blockquote
cite="mid:CABJ18ee5XOEQqaHjMHgqpo6SrVEdzSMxebdYGrGASw7kzOsiqA@mail.gmail.com"
type="cite">
<div>I am sorry for the mistake in sizes mentioned</div>
<div>The correct sizes are</div>
<div> </div>
<div> text data bss dec
hex filename
<div> 118665 3908
7794 130328 1fd3f hello.exe</div>
<div> </div>
<div> text data bss dec
hex filename
<div> 0 122573 0 122573
1de92 rtemshello.hex</div>
<br>
</div>
<br>
<br>
</div>
<div class="gmail_quote">On Wed, Jul 6, 2011 at 8:51 AM, S Akhtar
<span dir="ltr"><<a moz-do-not-send="true"
href="mailto:crystaldoll85@gmail.com">crystaldoll85@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="padding-left: 1ex;
margin: 0px 0px 0px 0.8ex; border-left: 1px solid rgb(204,
204, 204);">
<div>Hello all</div>
<div> </div>
<div>I am using RTEMS 4.10 for my i386ex custom board. Host
operating System is ubuntu 11.04</div>
<div> </div>
<div>I have configured my RTEMS as </div>
<div> </div>
<div>--target=i386-rtems4.10 --prefix=/opt/rtems-4.10
--disable-itron --disable-posix --disable-networking
--disable-multiprocessing --enable-rtemsbsp="i386ex"</div>
<div> </div>
<div>By this configuration, i get sample application "hello
world" executable of size 1.02 MB</div>
<div> </div>
<div> text data bss dec
filename</div>
<div> 118665 3908 7794 1fd3f
hello.exe</div>
<div> </div>
<div>By converting it into downloadable hex file </div>
<div> </div>
<div>i386-rtems4.10-objcopy -O ihex hello.exe hello.hex</div>
<div> </div>
<div>packhex <hello.hex >rtemshello.hex</div>
<div> </div>
<div>The final downloadable image is rtemshello</div>
<div> </div>
<div> text data bss dec
filename
<div> 0 122573 0 122573
rtemshello.hex</div>
<div> </div>
<div>The file size of rtemshello.hex is 246KB, whereas the
available ROM in my board is 128K, is there any way i can
reduce this size upto 128K so that i can download it into
ROM?</div>
<div> </div>
<div>Thank you for your time</div>
<div> </div>
<div>Regards</div>
</div>
</blockquote>
</div>
<br>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
rtems-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rtems-users@rtems.org">rtems-users@rtems.org</a>
<a class="moz-txt-link-freetext" href="http://www.rtems.org/mailman/listinfo/rtems-users">http://www.rtems.org/mailman/listinfo/rtems-users</a>
</pre>
</blockquote>
<br>
</body>
</html>