[mc1322x] building on a mac

Dean Hall dwhall256 at gmail.com
Fri Apr 16 17:11:13 EDT 2010


# No changes w.r.t. repository
$ arm-elf-size blink-allio_redbee-econotag.elf
    text	   data	    bss	    dec	    hex	filename
    2520	      0	   2848	   5368	   14f8	blink-allio_redbee-econotag.elf

# With soft-float addition; no math funcs
$ arm-elf-size blink-allio_redbee-econotag.elf
    text	   data	    bss	    dec	    hex	filename
    3356	      0	   2848	   6204	   183c	blink-allio_redbee-econotag.elf

# With soft-float addition, a call to sin() and "-lm" in CFLAGS in  
Makefile.include
$ arm-elf-size blink-allio_redbee-econotag.elf
    text	   data	    bss	    dec	    hex	filename
   13636	      0	   2848	  16484	   4064	blink-allio_redbee-econotag.elf

This all looks pretty reasonable.  I am not familiar with the -static  
option, so I didn't try it.  If you know where I can find docs on it,  
or tell me what to do, I can give it a try.

!!Dean


On Apr 16, 2010, at 04:30 , Andrew Pullin wrote:

> You should test something that uses floats, sqrt() and/or cos(), - 
> lm, and -static , and see if it all works out, and what size the  
> final ELF is.
> I haven't got working gcc with newlib, soft-float, interworking, and  
> the libmc1322x code working yet, but I'm learning a lot about GCC  
> trying to do so.
>
> -Andrew




More information about the mc1322x mailing list