[SAoC] "Druntime for Microcontrollers" project thread

IGotD- nise at nise.com
Wed Sep 30 18:03:55 UTC 2020


On Wednesday, 30 September 2020 at 17:55:48 UTC, IGotD- wrote:
>
> Ok, back from stupidity. With --function-sections and 
> --data-sections now with the phobos and runtime properly 
> compiled with those options, I was able to reduce the size. One 
> binary from about 700KB to 400KB, another binary from about 
> 500KB to about 320Kb.
>
> Still not microcontroller size but a slight improvement.

Also, when linking the flag --gc-sections (GNU linker) must be 
used otherwise nothing will happen.


More information about the Digitalmars-d mailing list