public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* Re: [ECOS] arm-thumb advice needed
       [not found] <200203221609.g2MG9M928275@mx1.redhat.com>
@ 2002-04-03 19:37 ` Jonathan Larmour
  0 siblings, 0 replies; 3+ messages in thread
From: Jonathan Larmour @ 2002-04-03 19:37 UTC (permalink / raw)
  To: Cristian VLASIN; +Cc: eCos Discussion

Cristian VLASIN wrote:
> 
>                 Hi all,
> 
>         I'm trying to compile my eCos with thumb and I think something is wrong
> because my binary gets bigger than the non-thumb one.
>         Here is what I have done:
>                 -built the binutils as described for thumb on eCos webpage
> http://sources.redhat.com/ecos/tools/linux-thumb-elf.html  (it seems to me
> that the page is similar with the simple arm one - should it be so?)
>                 -built gcc (3.0.3) also as described there
>                 -copied an example of redboot (which I have previously compiled for my
> EB40 card)
>                 -adjusted compiler flags with "-mthumb-interworking" and activated
> thumb+interworking in HAL (it doesn't compile with simple "-mthumb")
>                 -compiled and obtained a binary which is larger than the first one
> 
>         Can anyone tell me if I'm right or give me some advice to make it right?

No, -mthumb is what you need, and explains why you're seeing larger
binaries - they are still ARM mode executables, but with extra bits in to
allow it to link with thumb code.

At a guess it doesn't compile because you haven't built your GCC with a
thumb multilib, resulting in errors when linking with libgcc. If so you
need to edit gcc/config/arm/t-arm-elf and rebuild gcc.

Jifl
-- 
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine

-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [ECOS] arm-thumb advice needed
       [not found] <200203221609.g2MG9e928297@mx1.redhat.com>
@ 2002-03-26 23:26 ` Jesper Skov
  0 siblings, 0 replies; 3+ messages in thread
From: Jesper Skov @ 2002-03-26 23:26 UTC (permalink / raw)
  To: Cristian VLASIN; +Cc: eCos Discussion

On Fri, 2002-03-22 at 17:06, Cristian VLASIN wrote:
> 		-compiled and obtained a binary which is larger than the first one

At a guess, your mistaking the ELF executable for a binary file. It's
not. Do arm-elf-size on the file to get the true size.

Jesper


-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [ECOS] arm-thumb advice needed
@ 2002-03-22  9:19 Cristian VLASIN
  0 siblings, 0 replies; 3+ messages in thread
From: Cristian VLASIN @ 2002-03-22  9:19 UTC (permalink / raw)
  To: eCos Discussion


		Hi all, 

	I'm trying to compile my eCos with thumb and I think something is wrong 
because my binary gets bigger than the non-thumb one. 
	Here is what I have done: 
		-built the binutils as described for thumb on eCos webpage 
http://sources.redhat.com/ecos/tools/linux-thumb-elf.html  (it seems to me 
that the page is similar with the simple arm one - should it be so?)
		-built gcc (3.0.3) also as described there
		-copied an example of redboot (which I have previously compiled for my
EB40 card)
		-adjusted compiler flags with "-mthumb-interworking" and activated 
thumb+interworking in HAL (it doesn't compile with simple "-mthumb") 
		-compiled and obtained a binary which is larger than the first one

	Can anyone tell me if I'm right or give me some advice to make it right?

	Thanks in advance,
			Cris
	

-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-04-04  3:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <200203221609.g2MG9M928275@mx1.redhat.com>
2002-04-03 19:37 ` [ECOS] arm-thumb advice needed Jonathan Larmour
     [not found] <200203221609.g2MG9e928297@mx1.redhat.com>
2002-03-26 23:26 ` Jesper Skov
2002-03-22  9:19 Cristian VLASIN

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).