Cortex-M3 low level assert issue.

David Nadlinger code at klickverbot.at
Thu May 2 15:04:33 UTC 2019


On Thursday, 2 May 2019 at 09:24:00 UTC, kinke wrote:
> On Wednesday, 1 May 2019 at 21:55:09 UTC, Jack Applegame wrote:
>> In my real application, such useless data occupy an 
>> unacceptable amount of flash memory of the MCU. It would be 
>> nice to get rid of them.
>
> That's what -betterC is for (omit ModuleInfos, TypeInfos etc.). 
> If that's not an option, you can also hack your object.d and 
> try to remove TypeInfo, ModuleInfo etc. We also have 
> LDC-specific pragmas wrt. this.

True, but shouldn't gc-sections (with 
llvm::TargetOptions::DataSections == true) take care of 
eliminating the unused strings?

  — David


More information about the digitalmars-d-ldc mailing list