[chbot] Cruising aliexpress again!!
Robin Gilks
robin at gilks.org
Thu Sep 24 23:59:46 BST 2015
>
> ..... everything seems to be good with gcc and
> newlib. Its quick, supported, free, it works!!
>
> No hardware yet to test my sample code or compare it to the same source
> compiled for atmega328p (Arduino nano clone hardware) but the fact that it
> compiles is good enough for now :)
>
Comparing AVR to STM32 certainly highlights the efficiency of thumb mode
so that code size is very similar - data size is way bigger on arm due to
everything being 32 bit I suppose!!
$ arm-none-eabi-size -A images/fred.elf
images/fred.elf :
section size addr
.text 18400 0
.data 404 536870912
.bss 468 536871316
.debug_info 33913 0
.debug_abbrev 9214 0
.debug_loc 5191 0
.debug_aranges 1608 0
.debug_ranges 1144 0
.debug_macro 32052 0
.debug_line 22497 0
.debug_str 101482 0
.comment 88 0
.ARM.attributes 49 0
.debug_frame 3460 0
Total 229970
$ avr-size -A images/fred1.elf
images/fred1.elf :
section size addr
.data 136 8388864
.text 18052 0
.bss 260 8389000
.comment 17 0
.debug_aranges 1488 0
.debug_info 45909 0
.debug_abbrev 12436 0
.debug_line 10315 0
.debug_frame 5580 0
.debug_str 5622 0
.debug_loc 40642 0
.debug_ranges 1640 0
Total 142097
--
Robin Gilks
More information about the Chchrobotics
mailing list