2 avr specific general functions.
4 Note that mlh prepended _avr_ on the static functions. Makes
5 it easier to set a breakpoint using the debugger.
12 static char _defaultRules[] =
17 /* list of key words used by msc51 */
18 static char *_avr_keywords[] = {
35 void avr_assignRegisters (eBBlock **ebbs, int count);
37 static bool _avr_parseOptions(int *pargc, char **argv, int *i)
39 /* TODO: allow port-specific command line options to specify
45 static void _avr_finaliseOptions(void)
47 port->default_local_map =
48 port->default_globl_map = xdata;
51 static void _avr_setDefaultOptions(void)
55 static const char *_avr_getRegName(struct regs *reg)
62 static void _avr_genAssemblerPreamble(FILE *of)
67 /* Generate interrupt vector table. */
68 static int _avr_genIVT(FILE *of, symbol **interrupts, int maxInterrupts)
73 /** $1 is always the basename.
74 $2 is always the output file.
76 $l is the list of extra options that should be there somewhere...
77 MUST be terminated with a NULL.
79 static const char *_linkCmd[] = {
80 "aslink", "-nf", "$1", NULL
83 static const char *_asmCmd[] = {
84 "asx8051", "-plosgffc", "$1.asm", NULL
90 "ATMEL AVR", /* Target name */
92 TRUE, /* Emit glue around main */
96 "-plosgffc", /* Options with debug */
97 "-plosgff", /* Options without debug */
106 /* Sizes: char, short, int, long, ptr, fptr, gptr, bit, float, max */
107 1, 1, 2, 4, 1, 2, 3, 1, 4, 4
127 /* avr has an 8 bit mul */
133 _avr_finaliseOptions,
134 _avr_setDefaultOptions,
138 _avr_genAssemblerPreamble,