scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | LICENSE

commit 995a0fbf451fbaa189f000c809db92e885f2a512
parent 4878c57251c7f954a2f0b15d00c29e73a44f7c84
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Mon,  6 Mar 2017 13:39:32 +0100

[cc1] Rearrange fields of struct type

There were some types that could be changed to consume less
memory and with a better memory layout.

Diffstat:
Mcc1/cc1.h | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/cc1/cc1.h b/cc1/cc1.h @@ -302,12 +302,12 @@ struct keyword { struct type { unsigned char op; /* type builder operator */ - char ns; /* namespace for struct members */ + unsigned char ns; /* namespace for struct members */ short id; /* type id, used in dcls */ char letter; /* letter of the type */ - unsigned int prop; /* type properties */ - unsigned long size; /* sizeof the type */ + unsigned char prop; /* type properties */ unsigned char align; /* align of the type */ + unsigned long size; /* sizeof the type */ Type *type; /* base type */ Symbol *tag; /* symbol of the strug tag */ union {