blob: 2b4bec665d7325b54ea9a5194a1245608e1093fc [file] [log] [blame]
PulkoMandy17fc7592022-07-28 18:27:54 +02001
2
3#include "dt.h"
4
5
6
7/* The number of registers of the target machine. */
8#define MAXR 2
9
10/* Number of commandline-options the code-generator accepts. */
11#define MAXGF 4
12
13
14/* If this is set to zero vbcc will not generate ICs where the */
15/* target operand is the same as the 2nd source operand. */
16/* This can sometimes simplify the code-generator, but usually */
17/* the code is better if the code-generator allows it. */
18#define USEQ2ASZ 1
19
20/* This specifies the smallest integer type that can be added to a */
21/* pointer. */
22#define MINADDI2P INT
23
24/* If the bytes of an integer are ordered most significant byte */
25/* byte first and then decreasing set BIGENDIAN to 1. */
26#define BIGENDIAN 0
27
28/* If the bytes of an integer are ordered lest significant byte */
29/* byte first and then increasing set LITTLEENDIAN to 1. */
30#define LITTLEENDIAN 1
31
32/* Note that BIGENDIAN and LITTLEENDIAN are mutually exclusive. */
33
34/* If switch-statements should be generated as a sequence of */
35/* SUB,TST,BEQ ICs rather than COMPARE,BEQ ICs set this to 1. */
36/* This can yield better code on some machines. */
37#define SWITCHSUBS 1
38
39/* In optimizing compilation certain library memcpy/strcpy-calls */
40/* with length known at compile-time will be inlined using an */
41/* ASSIGN-IC if the size is less or equal to INLINEMEMCPY. */
42/* The type used for the ASSIGN-IC will be UNSIGNED|CHAR. */
43#define INLINEMEMCPY 1024
44
45/* size of buffer for asm-output */
46#define EMIT_BUF_LEN 20000 /* should be enough */
47
48/* number of asm-output lines buffered */
49#define EMIT_BUF_DEPTH 1
50
51/* We have asm_peephole to optimize assembly-output */
52#define HAVE_TARGET_PEEPHOLE 0
53
54/* We have some target-specific variable attributes. */
55#define HAVE_TARGET_ATTRIBUTES