# tools: Add tool for checking size and alignment of C types · gitcafe/zig

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

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

Visibility: public

Requested revision: 4bdf04654e3bd8ac09882cb49595f6797f2f5d09

Requested commit: 4bdf04654e3bd8ac09882cb49595f6797f2f5d09

Commit: 4bdf04654e3bd8ac09882cb49595f6797f2f5d09

Tree: 8c7ec69c6820197400ba83ac375524a1436df10e

Author: Evan Haas

Committer: Evan Haas

## Message

```
tools: Add tool for checking size and alignment of C types

Prints _Static_asserts for the size and alignment of all the basic built-in C
types. The output can be run through a compiler for the specified target to
verify that Zig's values are the same as those used by a C compiler for the
target.

```

## Parents

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

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