scc

simple C compiler
git clone git://git.2f30.org/scc
Log | Files | Refs | README | LICENSE

commit 9a4612256c7e1642b4fcf860c81704aea4b5b00c
parent 1dc92fbaf4a0e03602ff769eca02bf7a2354d433
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Wed, 13 Sep 2017 07:49:02 +0100

[cc1] Improve aligment of fields in Node and Symbol

With this new order it is needed less padding bytes.

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

diff --git a/cc1/cc1.h b/cc1/cc1.h @@ -321,14 +321,14 @@ struct type { }; struct symbol { - char *name; - Type *type; - unsigned short id; unsigned char ctx; unsigned char hide; char ns; + unsigned short id; + unsigned short flags; + char *name; + Type *type; unsigned char token; - short flags; union { TINT i; TUINT u; @@ -345,9 +345,9 @@ struct symbol { struct node { unsigned char op; + unsigned char flags; Type *type; Symbol *sym; - char flags; struct node *left, *right; };