Thursday, 16 November 2023

Re: [gccsdk] sizeof structs

 
typedef union {
uint16_t cache;
struct {
uint8_t code;
uint8_t arg;
} __attribute__((__packed__)) op;
} __attribute__((__packed__)) _Py_CODEUNIT;
 
typedef struct { } __attribute__((__packed__)) _PyAttrCache;
 
Aha. Thanks. That's got it past that static assert at least :)
You have to pack the nested structs as well. That's what I had to do
with harfbuzz for GCC 4.
I think that's the bit I missed.
Are you dynamic linking? The only issue with GCC 10 is we don't have a
point of distribution for the shared libraries. If you're static
linking then you don't have to worry about that.
 
Ah. yeah I am. I guess this is why Iris needs to come with it's own set of shared libs?
 
Cheers
 
Chris
 

No comments:

Post a Comment