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 */
12 /** Target name string, used for --help */
13 const char *target_name;
15 /** Command to run (eg as-z80) */
16 const char *exec_name;
17 /** Arguments for debug mode */
18 const char *debug_opts;
19 /** Arguments for normal assembly mode */
20 const char *plain_opts;
21 /** TRUE if the output file name should be pre-pended to the args */
22 bool requires_output_name;
25 /** Command to run (eg link-z80) */
26 const char *exec_name;
28 /** Basic type sizes */
42 /** -1 for grows down (z80), +1 for grows up (mcs51) */
44 /** Extra overhead when calling between banks */
46 /** Extra overhead when the function is an ISR */
48 /** Standard overhead for a function call */
50 /** Initial SP offset */
54 /** One more than the smallest mul/div operation the processor can do nativley
55 Eg if the processor has an 8 bit mul, nativebelow is 2 */
58 /** Parses one option + its arguments */
59 bool (*parseOption)(int *pargc, char **argv);
60 /** Called after all the options have been parsed. */
61 void (*finaliseOptions)(void);
62 /** Called after the port has been selected but before any
63 options are parsed. */
64 void (*setDefaultOptions)(void);
65 /** Does the dirty work. */
66 void (*assignRegisters)(eBBlock **, int);