Am 05.03.20 um 16:27 schrieb Sebastien Lorquet:
> Hello,
>
> I dont think named sections are supported in sdcc, but if they are done
> one day, I think that should be done using the usual attribute syntax:
>
> int var[10] __attribute__(( section("AREA_NAME") ));
>
> This is also usable on functi
Hello,
I dont think named sections are supported in sdcc, but if they are done
one day, I think that should be done using the usual attribute syntax:
int var[10] __attribute__(( section("AREA_NAME") ));
This is also usable on functions.
Sebastien
Le 03/03/2020 à 19:05, Vahid Bashiri a écrit
Hi all
I need something like this
__addressmod AREA_NAME;
AREA_NAME int var[10];
so I can do sdcc -b AREA_NAME=0xA000 ...
and place "var" (and possibly other variables) in special area, started at
0xA000. But its is not supported by SDCC so I made some patches to source
code and get it to work. I