Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

RE: [lpc2000] Re: GNUARM "ERROR: lcd.o uses software FP, whereas main.elf uses hardware FP"

2006-02-24 by Bruce Paterson

> > I am using winarm.
> > The gcc compiler down loaded from Keil site works well.
> > But if I use winarm, it gives object file not found.
> > By the way I have observed that code size is large (5000) when I
> compile
> > with gcc from keil and its very low (1000 bytes) when I compile with
> winarm.
> > Any idea?
> 
> About code size - check optimization option (-O) in 
> compiler's parameters list. There are several levels of optimization:
> 
> -O default
> -O0 no opt.
> -O1 level1
> -O2 level2 (big speed)
> -O3 level3
> -Os small size

After you've checked the optimization flags:
Do you know which C libraries you are using in each case ?

WinARm by default is setup to use newlib. I recall a discussion on here
about Keil using by default a different C library. It was in a
discussion about C lib licensing issues.
It might be you are comparing apples with oranges. (This is not to say
one lib is better than another; just your app may end up with a smaller
fit in the newlib case, or the library was compiled with a different
optimisation (or even thumb mode) even if your app is compiled at the
same optimisation level.)

Cheers,
Bruce

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.