Skip to content

Binaries very large compared to AVR #17

Open
@timonsku

Description

@timonsku

I'm not sure how specific it is to the SAMD11 implementation so apologies if this is the wrong place to report/ask about this but I currently face the issue that a lot of code compiles to a much smaller size for AVR platforms and to sometimes 2-5 times that sizes for SAMD11. F.e. I tried to compile this example while having a SAMD11 selected it compiles to >25kb (USB disabled) but with an ATmega328P selected it compiles to only 7kb.
This sounds like there might be some optimizations missing in the compiler flags or does the architecture really have such a huge overhead?

Compilation for the above mentioned example terminates with: h_SDI-12_slave_implementation.ino.elf section .text' will not fit in region FLASH'
Maybe some symbols being linked that aren't supposed to be linked?

I'm using the beta board .json for the board manager.

E: Compiling the BareMinimum example results in a ~4kb binary, again with USB disabled. With AVR it is around 444bytes.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions