Creating a microcontroller startup file

Jens Bauer via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Apr 8 08:43:59 PDT 2015


On Wednesday, 8 April 2015 at 11:17:12 UTC, Mike wrote:
> I did something along these lines (modified to match your 
> example) and it worked fine for me:
>
> alias VectorFunc = void function();
>
> @attribute("weak") @attribute("alias", "defaultHandler")
> extern void Reset_Handler();

Strange; I can't get it to build without extern(C).
Also, if I remove extern(C) from for instance HardFault_Handler, 
then a HardFault_Handler written in C is not found by the linker.


More information about the Digitalmars-d-learn mailing list