Cortex-M3 low level assert issue.

Mike Franklin slavo5150 at yahoo.com
Fri May 3 03:18:00 UTC 2019


On Friday, 3 May 2019 at 03:00:43 UTC, Mike Franklin wrote:

> Note that it's ok for your .o files be full of junk.  They can 
> be stripped out at link time with the `--gc-sections` flag.  
> Just be sure you're compiling with `-ffunction-sections` and 
> `-fdata-sections` for `--gc-sections` to work well.
>
> Question for LDC developers:  Are the above compiler flags 
> enabled by default?  How can one confirm?

This looks relevant:  
https://github.com/ldc-developers/ldc/blob/c81a0c94e535c3d670a4fab7aca9b1de22c3778c/driver/targetmachine.cpp#L472-L481

Mike


More information about the digitalmars-d-ldc mailing list