I encountered the following code snippet within a cstartup file for a cortex m0 micro - cstartup_M.c
#pragma location = ".intvec"
__root const intvec_elem __vector_table[] =
{
{ .__ptr = __sfe( "CSTACK" ) },
__iar_program_start,
NonMaskableInt_Handler,
HardFault_Handler,
Could someone please explain the syntax within the line: { .__ptr = __sfe( "CSTACK" ) },
Specifically:
- What is the purpose of the additional code block?
- What is going on here:
.__ptr
?