Hi Bogdan,
I got feedback from compiler team.
In fat there is a problem with the documentation - this will be fixed in a next version.
Compiler is designed to allow up to 8192 (2^13) and throws error for anything more.
For higher alignment value, this can be done via the LCF.
I've created an example on my side.
to resume ...
For my example if I want to write:
int V1[4] __attribute__ ((aligned (16384)));
the compiler generates an error.
The V1[] is allocated in the .bss section.
To do that I can:
In the main.c
#pragma push //Save the original pragma context
#pragma section data_type ".__my_data" ".__my_data"
int V1[4];
#pragma pop
In the lcf file
.bss : {}
.__my_data ALIGN(0x4000) :{}
} > internal_ram_p0
Extract of map file:
.__my_data section layout
Starting Virtual File
address Size address offset
---------------------------------
00000000 000010 40004000 00004000 1 .__my_data main_c.obj
00000000 000010 40004000 00004000 8 V1 main_c.obj
Regards
Pascal