Implement @align in C backend #26
Labels
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
kdl-script supports an align attribute, which the rust backend implements. The C backend should implement it too (currently it bails if it finds any attributes at all, pending implementations like this one). Currently the C backend contains a commented-out version of the rust impl, so you can roughly see what should be done:
abi-cafe/src/abis/c/declare.rs
Lines 345 to 356 in 6ba6865
The main issue is picking the attribute to use, perhaps by checking what compiler we're using. I know there's like, way too many different attributes here. Someone with more C experience than me hopefully has Opinions on which to use where.
The text was updated successfully, but these errors were encountered: