# x86_64: enable struct field reordering · gitcafe/zig

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

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

Visibility: public

Requested revision: a446101677e556c54a1633c430cb1611b2cdd5fe

Requested commit: a446101677e556c54a1633c430cb1611b2cdd5fe

Commit: a446101677e556c54a1633c430cb1611b2cdd5fe

Tree: d581a5446c5637a7dee7630fe7893a916777e5fc

Author: Jacob Young

Committer: Andrew Kelley

## Message

```
x86_64: enable struct field reordering

The blocker for enabling this feature was my need to debug the emitted
assembly without debug info and having to manually inspect memory to
determine struct contents.  However, we now have debug info!

    (lldb) v -L foo bar
    0x00007fffffffda20: (repro.repro.Foo) foo = {
    0x00007fffffffda24:   .x = 12
    0x00007fffffffda20:   .y = 34
    }
    0x00007fffffffda28: (repro.repro.Bar) bar = {
    0x00007fffffffda28:   .x = 56
    0x00007fffffffda2c:   .y = 78
    }

Updates #21530

```

## Parents

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

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