scc

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

commit c24d1d19be49987c696d8330bb66e50cc4435240
parent 82d4a96ab4740538492214657f82a75e43fa2014
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Sun, 27 Aug 2017 19:05:17 +0200

[cc1+cc2] Initial work needed for qbe_arm64

This patch prepare the tree for qbe_arm64 and add empty files for
cc1/target/arch.c and cc2/target/types.c

Diffstat:
Acc1/target/arm64-sysv/arch.c | 0
Acc2/target/arm64-sysv/types.c | 0
Rcc2/target/qbe_amd64-sysv/arch.h -> cc2/target/qbe/arch.h | 0
Rcc2/target/qbe_amd64-sysv/cgen.c -> cc2/target/qbe/cgen.c | 0
Rcc2/target/qbe_amd64-sysv/code.c -> cc2/target/qbe/code.c | 0
Rcc2/target/qbe_amd64-sysv/optm.c -> cc2/target/qbe/optm.c | 0
Mcc2/target/qbe_amd64-sysv/target.mk | 8++++----
Dcc2/target/qbe_amd64-sysv/types.c | 94-------------------------------------------------------------------------------
Acc2/target/qbe_arm64-sysv/target.mk | 6++++++
9 files changed, 10 insertions(+), 98 deletions(-)

diff --git a/cc1/target/arm64-sysv/arch.c b/cc1/target/arm64-sysv/arch.c diff --git a/cc2/target/arm64-sysv/types.c b/cc2/target/arm64-sysv/types.c diff --git a/cc2/target/qbe_amd64-sysv/arch.h b/cc2/target/qbe/arch.h diff --git a/cc2/target/qbe_amd64-sysv/cgen.c b/cc2/target/qbe/cgen.c diff --git a/cc2/target/qbe_amd64-sysv/code.c b/cc2/target/qbe/code.c diff --git a/cc2/target/qbe_amd64-sysv/optm.c b/cc2/target/qbe/optm.c diff --git a/cc2/target/qbe_amd64-sysv/target.mk b/cc2/target/qbe_amd64-sysv/target.mk @@ -1,6 +1,6 @@ OBJ-qbe_amd64-sysv = $(OBJ) \ - target/qbe_amd64-sysv/cgen.o \ - target/qbe_amd64-sysv/optm.o \ - target/qbe_amd64-sysv/code.o \ - target/qbe_amd64-sysv/types.o + target/qbe/cgen.o \ + target/qbe/optm.o \ + target/qbe/code.o \ + target/arm64-sysv/types.o diff --git a/cc2/target/qbe_amd64-sysv/types.c b/cc2/target/qbe_amd64-sysv/types.c @@ -1,94 +0,0 @@ -/* See LICENSE file for copyright and license details. */ -static char sccsid[] = "@(#) ./cc2/arch/qbe/types.c"; - -#include "../../../inc/scc.h" -#include "../../cc2.h" - - -Type int8type = { - .flags = SIGNF | INTF, - .size = 1, - .align = 1 -}; - -Type int16type = { - .flags = SIGNF | INTF, - .size = 2, - .align = 2 -}; - -Type int32type = { - .flags = SIGNF | INTF, - .size = 4, - .align = 4 -}; - -Type int64type = { - .flags = SIGNF | INTF, - .size = 8, - .align = 8 -}; - -Type uint8type = { - .flags = INTF, - .size = 1, - .align = 1 -}; - -Type uint16type = { - .flags = INTF, - .size = 2, - .align = 2 -}; - -Type uint32type = { - .flags = INTF, - .size = 4, - .align = 4 -}; - -Type uint64type = { - .flags = INTF, - .size = 8, - .align = 2 -}; - -Type ptrtype = { - .flags = INTF, - .size = 8, - .align = 8 -}; - -Type booltype = { - .flags = INTF, - .size = 1, - .align = 1 -}; - -Type float32type = { - .flags = FLOATF, - .size = 4, - .align = 4 -}; - -Type float64type = { - .flags = FLOATF, - .size = 8, - .align = 8 -}; - -Type float80type = { - .flags = FLOATF, - .size = 16, - .align = 16 -}; - -Type voidtype = { - .size = 0, - .align = 0 -}; - -Type arg_type = { - .size = 24, - .align = 8 -}; diff --git a/cc2/target/qbe_arm64-sysv/target.mk b/cc2/target/qbe_arm64-sysv/target.mk @@ -0,0 +1,6 @@ + +OBJ-qbe_amd64-sysv = $(OBJ) \ + target/qbe/cgen.o \ + target/qbe/optm.o \ + target/qbe/code.o \ + target/arm64-sysv/types.o