2 Definitions for what a port must provide.
3 All ports are referenced in SDCCmain.c.
8 /* Processor specific names */
10 /** Target name used for -m */
13 /** Target name string, used for --help */
14 const char *target_name;
16 /* assembler related information */
18 /** Command to run and arguments (eg as-z80) */
20 /** Arguments for debug mode. PENDING: ignored */
21 const char *debug_opts;
22 /** Arguments for normal assembly mode. PENDING: ignored */
23 const char *plain_opts;
26 /* linker related info */
28 /** Command to run (eg link-z80) */
32 /** Basic type sizes */
46 /** Names for all the memory regions */
48 const char *xstack_name;
49 const char *istack_name;
50 const char *code_name;
51 const char *data_name;
52 const char *idata_name;
53 const char *xdata_name;
56 const char *static_name;
57 const char *overlay_name;
60 /* stack related information */
62 /** -1 for grows down (z80), +1 for grows up (mcs51) */
64 /** Extra overhead when calling between banks */
66 /** Extra overhead when the function is an ISR */
68 /** Standard overhead for a function call */
70 /** Re-enterant space */
75 /** One more than the smallest
76 mul/div operation the processor can do nativley
77 Eg if the processor has an 8 bit mul, nativebelow is 2 */
81 /** Parses one option + its arguments */
82 bool (*parseOption)(int *pargc, char **argv);
83 /** Called after all the options have been parsed. */
84 void (*finaliseOptions)(void);
85 /** Called after the port has been selected but before any
86 options are parsed. */
87 void (*setDefaultOptions)(void);
88 /** Does the dirty work. */
89 void (*assignRegisters)(eBBlock **, int);
91 /** Returns the register name of a symbol.
92 Used so that 'regs' can be an incomplete type. */
93 const char *(*getRegName)(struct regs *reg);
95 /* list of keywords that are used by this
96 target (used by lexer) */