scc

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

types.c (1175B)


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