scc

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

types.c (1183B)


      1 static char sccsid[] = "@(#) ./cc2/arch/z80/types.c";
      2 
      3 #include "../../../inc/scc.h"
      4 #include "../../cc2.h"
      5 
      6 
      7 Type int8type = {
      8 	.flags  = SIGNF | INTF,
      9 	.size   = 1,
     10 	.align  = 1
     11 };
     12 
     13 Type int16type = {
     14 	.flags  = SIGNF | INTF,
     15 	.size   = 2,
     16 	.align  = 1
     17 };
     18 
     19 Type int32type = {
     20 	.flags  = SIGNF | INTF,
     21 	.size   = 4,
     22 	.align  = 1
     23 };
     24 
     25 Type int64type = {
     26 	.flags  = SIGNF | INTF,
     27 	.size   = 8,
     28 	.align  = 1
     29 };
     30 
     31 Type uint8type = {
     32 	.flags  = INTF,
     33 	.size   = 1,
     34 	.align  = 1
     35 };
     36 
     37 Type uint16type = {
     38 	.flags  = INTF,
     39 	.size   = 2,
     40 	.align  = 1
     41 };
     42 
     43 Type uint32type = {
     44 	.flags  = INTF,
     45 	.size   = 4,
     46 	.align  = 1
     47 };
     48 
     49 Type uint64type = {
     50 	.flags  = INTF,
     51 	.size   = 8,
     52 	.align  = 1
     53 };
     54 
     55 Type ptrtype = {
     56 	.flags  = INTF,
     57 	.size   = 2,
     58 	.align  = 1
     59 };
     60 
     61 Type booltype = {
     62 	.flags  = INTF,
     63 	.size   = 1,
     64 	.align  = 1
     65 };
     66 
     67 Type float32type = {
     68 	.flags  = FLOATF,
     69 	.size   = 4,
     70 	.align  = 1
     71 };
     72 
     73 Type float64type = {
     74 	.flags  = FLOATF,
     75 	.size   = 4,
     76 	.align  = 1
     77 };
     78 
     79 Type float80type = {
     80 	.flags  = FLOATF,
     81 	.size   = 4,
     82 	.align  = 1
     83 };
     84 
     85 Type voidtype = {
     86 	.size = 0,
     87 	.align = 0
     88 };
     89 
     90 /* this types is not going to be used in this arch */
     91 Type arg_type = {
     92         .size = 0,
     93         .align = 0
     94 };