alignas

Other misc things
Post Reply
carlesoriol
New member
Posts: 4
Joined: Mon Nov 28, 2022 10:25 pm

alignas

Post by carlesoriol »

I'm trying to use alignas in something like:

#include "stdalign.h"
alignas(8) uint8_t tiles[][8] = {...

with compiler zcc +zx -vn -startup=1 -clib=sdcc_iy...

And I got : error 216: invalid alignment specified: 8

Any help about how can I use it?
Stefan
Member
Posts: 19
Joined: Fri Nov 29, 2013 10:21 pm

Re: alignas

Post by Stefan »

alignas is implemented by SDCC - it's value however can only be 0 or 1 - see mailing list over on sourceforge.
And even for alignas, SDCC does AFAIK currently not support alignment
other than 0 or 1.
carlesoriol
New member
Posts: 4
Joined: Mon Nov 28, 2022 10:25 pm

Re: alignas

Post by carlesoriol »

Thanks
Post Reply