# c backend: Implement aligning fields and local/global variables · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/f1b91bb41b2d810ecabf4c69cad91b24b3846b77)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: f1b91bb41b2d810ecabf4c69cad91b24b3846b77

Requested commit: f1b91bb41b2d810ecabf4c69cad91b24b3846b77

Commit: f1b91bb41b2d810ecabf4c69cad91b24b3846b77

Tree: 59416bc00443451485832f6d1a1ce4b3d3357c58

Author: Jimmi Holst Christensen

Committer: Andrew Kelley

## Message

```
c backend: Implement aligning fields and local/global variables

There are some restrictions here.

- We either need C11 or a compiler that supports the aligned attribute
- We cannot provide align less than the type's natural C alignment.

```

## Parents

- [7287c7482a2c694c7c7f56b9f7c1744a7ae7905f](https://git.cafe/gitcafe/zig/commit/7287c7482a2c694c7c7f56b9f7c1744a7ae7905f?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/f1b91bb41b2d810ecabf4c69cad91b24b3846b77?format=markdown)
