<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Try sparc-rtems4.xx-size *.exe<br>
    <br>
    The size can vary enormously based upon what you<br>
    are doing in application space. <br>
    <br>
    --joel<br>
    <br>
    On 04/03/2012 11:33 AM, Rhenzo Losso wrote:
    <blockquote
cite="mid:CAKWRiNShprcH9dBAFBR=xwBSDtHc2YBF5OcCzpovdJKrf3f=hw@mail.gmail.com"
      type="cite">I just made this test some right now on BSP SIS. <br>
      <br>
      sparc-rtems-strip -s executable_name.exe -o
      strip-executable_name.exe<br>
      <br>
      It was reduced a lot. from #MB to 140kB. After this I turn into
      binary.<br>
      <br>
      sparc-rtems-objcopy -O binary strip-executable_name.exe
      final-binary-name.bin<br>
      <br>
      <br>
      <br>
      <div class="gmail_quote">2012/4/3 Luca Cinquepalmi <span
          dir="ltr"><<a moz-do-not-send="true"
            href="mailto:cinquepalmi@planetek.it">cinquepalmi@planetek.it</a>></span><br>
        <blockquote class="gmail_quote" style="margin:0 0 0
          .8ex;border-left:1px #ccc solid;padding-left:1ex">
          <div bgcolor="#FFFFFF" text="#000000"> Sorry! I answered in
            Italian:-)<br>
            It only reduce my exe file of some hundreds of bytes:-(
            <div class="im"><br>
              <br>
              Il 03/04/2012 18.15, Rhenzo Losso ha scritto: </div>
            <blockquote type="cite">Try to change some argument o
              sparc-rtems-objcopy such this line below:
              <div>
                <div class="h5"><br>
                  <br>
                  "sparc-rtems-objcopy -O binary name_of_source_ exe
                  name_of_binary.bin"<br>
                  <br>
                  that  is the "same" line I use on my ARM, excpet it
                  arm-rtems-objcopy not sparc-rtems-objcopy.<br>
                  <br>
                  <br>
                  <br>
                  <div class="gmail_quote">2012/4/3 Luca Cinquepalmi <span
                      dir="ltr"><<a moz-do-not-send="true"
                        href="mailto:cinquepalmi@planetek.it"
                        target="_blank">cinquepalmi@planetek.it</a>></span><br>
                    <blockquote class="gmail_quote" style="margin:0 0 0
                      .8ex;border-left:1px #ccc solid;padding-left:1ex">
                      <div bgcolor="#FFFFFF" text="#000000"> In  my
                        Makefile I also use these commands:<br>
                        <br>
                        <small>sparc-rtems-strip $@.exe<br>
                          sparc-rtems-objcopy --remove-section=.comment
                          $@.exe</small><br>
                        <br>
                        <small><big>but the final .exe file is always
                            large, about 300KB from the original 3MB.<br>
                            Should I use other commands? Thanks<br>
                            <br>
                            <br>
                          </big></small><br>
                        Il 03/04/2012 18.04, Rhenzo Losso ha scritto:
                        <div>
                          <div>
                            <blockquote type="cite">Greetings,<br>
                              <br>
                              Maybe you can use the sparc-rtems-objdump
                              or sparc-rtems-strip. I'm using RTEMS on
                              arm processor (CSN637 port) and I use
                              arm-rtems-objcopy to transform the arm.exe
                              into arm.bin. It reduce from 2MB to near
                              147kB.<br>
                              <br>
                              <br>
                              <br>
                              <div class="gmail_quote">2012/4/3 Luca
                                Cinquepalmi <span dir="ltr"><<a
                                    moz-do-not-send="true"
                                    href="mailto:cinquepalmi@planetek.it"
                                    target="_blank">cinquepalmi@planetek.it</a>></span><br>
                                <blockquote class="gmail_quote"
                                  style="margin:0 0 0
                                  .8ex;border-left:1px #ccc
                                  solid;padding-left:1ex"> Hi all,<br>
                                  I'm new of the list and I have a
                                  simple question. I compiled a simple
                                  "Hello World" c code<br>
                                  with sparc-rtems-gcc, but the
                                  generated executable is about 3MB, so
                                  much for my use...<br>
                                  I don't know why the executable file
                                  is so large... How can I reduce its
                                  size?<br>
                                  Thank you<br>
                                  <br>
                                      Luca<br>
_______________________________________________<br>
                                  rtems-users mailing list<br>
                                  <a moz-do-not-send="true"
                                    href="mailto:rtems-users@rtems.org"
                                    target="_blank">rtems-users@rtems.org</a><br>
                                  <a moz-do-not-send="true"
                                    href="http://www.rtems.org/mailman/listinfo/rtems-users"
                                    target="_blank">http://www.rtems.org/mailman/listinfo/rtems-users</a><br>
                                </blockquote>
                              </div>
                              <br>
                              <br clear="all">
                              <br>
                              -- <br>
                              Rhenzo Losso<br>
                              Bacharel em Ciência da Computação - UNESP
                              / São José do Rio Preto<br>
                              <br>
                              Instituto Tecnológico de Aeronáutica<br>
                              Praça Marechal do Ar Eduardo Gomes, no. 50
                              - Sala 253 - Projeto ITASAT<br>
                              Vila das Acácias<br>
                              12228-900 Sao Jose dos Campos, SP, Brazil<br>
                              <a moz-do-not-send="true"
                                href="tel:%2B55%20012%203947-6903"
                                value="+551239476903" target="_blank">+55
                                012 3947-6903</a> (Sala do ITA)<br>
                            </blockquote>
                            <br>
                          </div>
                        </div>
                      </div>
                    </blockquote>
                  </div>
                  <br>
                  <br clear="all">
                  <br>
                  -- <br>
                  Rhenzo Losso<br>
                  Bacharel em Ciência da Computação - UNESP / São José
                  do Rio Preto<br>
                  <br>
                  Instituto Tecnológico de Aeronáutica<br>
                  Praça Marechal do Ar Eduardo Gomes, no. 50 - Sala 253
                  - Projeto ITASAT<br>
                  Vila das Acácias<br>
                  12228-900 Sao Jose dos Campos, SP, Brazil<br>
                  <a moz-do-not-send="true"
                    href="tel:%2B55%20012%203947-6903"
                    value="+551239476903" target="_blank">+55 012
                    3947-6903</a> (Sala do ITA)<br>
                </div>
              </div>
            </blockquote>
            <br>
          </div>
        </blockquote>
      </div>
      <br>
      <br clear="all">
      <br>
      -- <br>
      Rhenzo Losso<br>
      Bacharel em Ciência da Computação - UNESP / São José do Rio Preto<br>
      <br>
      Instituto Tecnológico de Aeronáutica<br>
      Praça Marechal do Ar Eduardo Gomes, no. 50 - Sala 253 - Projeto
      ITASAT<br>
      Vila das Acácias<br>
      12228-900 Sao Jose dos Campos, SP, Brazil<br>
      +55 012 3947-6903 (Sala do ITA)<br>
    </blockquote>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 
Joel Sherrill, Ph.D.             Director of Research&  Development
<a class="moz-txt-link-abbreviated" href="mailto:joel.sherrill@OARcorp.com">joel.sherrill@OARcorp.com</a>        On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
    Support Available             (256) 722-9985

</pre>
  </body>
</html>