1 /*-------------------------------------------------------------------------
3 main.c - pic16 specific general functions.
5 Written by - Scott Dattalo scott@dattalo.com
6 Ported to PIC16 by - Martin Dubuc m.debuc@rogers.com
8 Note that mlh prepended _pic16_ on the static functions. Makes
9 it easier to set a breakpoint using the debugger.
12 This program is free software; you can redistribute it and/or modify it
13 under the terms of the GNU General Public License as published by the
14 Free Software Foundation; either version 2, or (at your option) any
17 This program is distributed in the hope that it will be useful,
18 but WITHOUT ANY WARRANTY; without even the implied warranty of
19 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 GNU General Public License for more details.
22 You should have received a copy of the GNU General Public License
23 along with this program; if not, write to the Free Software
24 Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
25 -------------------------------------------------------------------------*/
37 static char _defaultRules[] =
42 /* list of key words used by pic16 */
43 static char *_pic16_keywords[] =
72 pic16_sectioninfo_t pic16_sectioninfo;
75 extern char *pic16_processor_base_name(void);
77 void pic16_pCodeInitRegisters(void);
79 void pic16_assignRegisters (eBBlock ** ebbs, int count);
81 static int regParmFlg = 0; /* determine if we can register a parameter */
83 pic16_options_t pic16_options;
88 asm_addTree (&asm_asxxxx_mapping);
89 pic16_pCodeInitRegisters();
92 /* set pic16 port options to defaults */
93 pic16_options.gen_banksel = 0;
94 pic16_options.opt_banksel = 0;
95 pic16_options.omit_configw = 0;
96 pic16_options.omit_ivt = 0;
97 pic16_options.leave_reset = 0;
98 pic16_options.stack_model = 0; /* 0 for 'small', 1 for 'large' */
102 _pic16_reset_regparm ()
108 _pic16_regparm (sym_link * l)
110 /* for this processor it is simple
111 can pass only the first parameter in a register */
120 int initsfpnt=0; /* set to 1 if source provides a pragma for stack
121 * so glue() later emits code to initialize stack/frame pointers */
125 _process_pragma(const char *sz)
127 static const char *WHITE = " \t";
129 char *ptr = strtok((char *)sz, WHITE);
131 if (startsWith (ptr, "maxram")) {
132 char *maxRAM = strtok((char *)NULL, WHITE);
134 if (maxRAM != (char *)NULL) {
138 maxRAMVal = constVal(maxRAM);
139 maxRAMaddress = (int)floatFromVal(maxRAMVal);
140 pic16_setMaxRAM(maxRAMaddress);
144 if(startsWith(ptr, "stack")) {
145 char *stackPosS = strtok((char *)NULL, WHITE);
149 // fprintf(stderr, "Initializing stack pointer to 0x%x\n", (int)floatFromVal(constVal(stackPos)));
150 stackPosVal = constVal( stackPosS );
151 stackPos = (unsigned int)floatFromVal( stackPosVal );
153 reg=newReg(REG_SFR, PO_SFR_REGISTER, stackPos, "stack", 1, 0, NULL);
154 addSet(&pic16_fix_udata, reg);
156 initsfpnt = 1; // force glue() to initialize stack/frame pointers */
161 if(startsWith(ptr, "code")) {
162 char *symname = strtok((char *)NULL, WHITE);
163 char *location = strtok((char *)NULL, WHITE);
167 absS = Safe_calloc(1, sizeof(absSym));
168 absS->name = Safe_strdup( symname );
169 addr = constVal( location );
170 absS->address = (unsigned int)floatFromVal( addr );
172 addSet(&absSymSet, absS);
173 fprintf(stderr, "%s:%d symbol %s will be placed in location 0x%06x in code memory\n",
174 __FILE__, __LINE__, symname, absS->address);
182 #define REP_UDATA "--preplace-udata-with="
183 #define REP_UDATAACS "--preplace-udata-acs-with="
184 #define REP_UDATAOVR "--preplace-udata-ovr-with="
185 #define REP_UDATASHR "--preplace-udata-sht-with="
187 #define NAME_CODE "--psection-code-name="
188 #define NAME_IDATA "--psection-idata-name="
189 #define NAME_UDATA "--psection-udata-name="
190 #define NAME_UDATAACS "--psection-udata-acs-name="
191 #define NAME_UDATAOVR "--psection-udata-ovr-name="
192 #define NAME_UDATASHR "--psection-udata-shr-name="
194 #define ADDR_CODE "--psection-code-addr="
195 #define ADDR_IDATA "--psection-idata-addr="
196 #define ADDR_UDATA "--psection-udata-addr="
197 #define ADDR_UDATAACS "--psection-udata-acs-addr="
198 #define ADDR_UDATAOVR "--psection-udata-ovr-addr="
199 #define ADDR_UDATASHR "--psection-udata-shr-addr="
201 #define STACK_MODEL "--pstack-model="
202 #define OPT_BANKSEL "--obanksel="
205 extern int pic16_debug_verbose;
206 extern int pic16_ralloc_debug;
207 extern int pic16_pcode_verbose;
209 OPTION pic16_optionsTable[]= {
210 { 0, "--pgen-banksel", &pic16_options.gen_banksel, "generate BANKSEL assembler directives"},
211 { 0, OPT_BANKSEL, NULL, "set banksel optimization level (default=0 no)"},
212 { 0, "--pomit-config-words", &pic16_options.omit_configw, "omit the generation of configuration words"},
213 { 0, "--pomit-ivt", &pic16_options.omit_ivt, "omit the generation of the Interrupt Vector Table"},
214 { 0, "--pleave-reset-vector",&pic16_options.leave_reset, "when omitting IVT leave RESET vector"},
215 { 0, STACK_MODEL, NULL, "use stack model 'small' (default) or 'large'"},
217 { 0, "--debug-xtra", &pic16_debug_verbose, "show more debug info in assembly output"},
218 { 0, "--debug-ralloc", &pic16_ralloc_debug, "dump register allocator debug file *.d"},
219 { 0, "--pcode-verbose", &pic16_pcode_verbose, "dump pcode related info"},
221 { 0, REP_UDATA, NULL, "Place udata variables at another section: udata_acs, udata_ovr, udata_shr"},
224 /* these may not be in any use -- VR */
225 { 0, AT_UDATAACS, NULL, "Emit udata_acs variables at another section"},
226 { 0, AT_UDATAOVR, NULL, "Emit udata_ovr variables at another section"},
227 { 0, AT_UDATASHR, NULL, "Emit udata_shr variables at another section"},
231 /* commented out for the time being -- VR */
232 { 0, NAME_CODE, NULL, "Set code section name[,address]"},
233 { 0, NAME_IDATA, NULL, "Set idata section name[,address]"},
234 { 0, NAME_UDATA, NULL, "Set udata section name[,address]"},
235 { 0, NAME_UDATAACS, NULL, "Set udata_acs section name[,address]"},
236 { 0, NAME_UDATAOVR, NULL, "Set udata_ovr section name[,address]"},
237 { 0, NAME_UDATASHR, NULL, "Set udata_shr section name[,address]"},
239 { 0, ADDR_CODE, NULL, "Set code section address"},
240 { 0, ADDR_IDATA, NULL, "Set idata section address"},
241 { 0, ADDR_UDATA, NULL, "Set udata section address"},
242 { 0, ADDR_UDATAACS, NULL, "Set udata_acs section address"},
243 { 0, ADDR_UDATAOVR, NULL, "Set udata_ovr section address"},
244 { 0, ADDR_UDATASHR, NULL, "Set udata_shr section address"},
247 { 0, NULL, NULL, NULL}
251 #define ISOPT(str) !strncmp(argv[ *i ], str, strlen(str) )
253 extern char *getStringArg(const char *, char **, int *, int);
254 extern int getIntArg(const char *, char **, int *, int);
257 _pic16_parseOptions (int *pargc, char **argv, int *i)
263 /* TODO: allow port-specific command line options to specify
264 * segment names here.
266 /* check for arguments that have associated an integer variable */
267 while(pic16_optionsTable[j].pparameter) {
268 if(ISOPT( pic16_optionsTable[j].longOpt )) {
269 (*pic16_optionsTable[j].pparameter)++;
276 if(ISOPT(STACK_MODEL)) {
277 stkmodel = getStringArg(STACK_MODEL, argv, i, *pargc);
278 if(STRCASECMP(stkmodel, "small"))pic16_options.stack_model = 0;
279 else if(STRCASECMP(stkmodel, "large"))pic16_options.stack_model = 1;
281 fprintf(stderr, "Unknown stack model: %s", stkmodel);
287 if(ISOPT(OPT_BANKSEL)) {
288 pic16_options.opt_banksel = getIntArg(OPT_BANKSEL, argv, i, *pargc);
292 if(ISOPT(REP_UDATA)) {
293 pic16_sectioninfo.at_udata = Safe_strdup(getStringArg(REP_UDATA, argv, i, *pargc));
298 if(ISOPT(AT_UDATAACS)) {
299 pic16_sectioninfo.at_udataacs = Safe_strdup( getStringArg(AT_UDATAACS, argv, i, *pargc));
303 if(ISOPT(AT_UDATAOVR)) {
304 pic16_sectioninfo.at_udataovr = Safe_strdup( getStringArg(AT_UDATAOVR, argv, i, *pargc));
308 if(ISOPT(AT_UDATASHR)) {
309 pic16_sectioninfo.at_udatashr = Safe_strdup( getStringArg(AT_UDATASHR, argv, i, *pargc));
315 if(ISOPT(ADDR_CODE)) {
316 pic16_sectioninfo.addr_code = getIntArg(ADDR_CODE, argv, i, *pargc);
320 if(ISOPT(ADDR_IDATA)) {
321 pic16_sectioninfo.addr_idata = getIntArg(ADDR_IDATA, argv, i, *pargc);
325 if(ISOPT(ADDR_UDATA)) {
326 pic16_sectioninfo.addr_udata = getIntArg(ADDR_UDATA, argv, i, *pargc);
330 if(ISOPT(ADDR_UDATAACS)) {
331 pic16_sectioninfo.addr_udataacs = getIntArg(ADDR_UDATAACS, argv, i, *pargc);
335 if(ISOPT(ADDR_UDATAOVR)) {
336 pic16_sectioninfo.addr_udataovr = getIntArg(ADDR_UDATAOVR, argv, i, *pargc);
340 if(ISOPT(ADDR_UDATASHR)) {
341 pic16_sectioninfo.addr_udatashr = getIntArg(ADDR_UDATASHR, argv, i, *pargc);
347 if(ISOPT(NAME_CODE)) {
348 setParseWithComma(&tset, getStringArg(NAME_CODE, argv, i, *pargc));
349 if(elementsInSet(tset) > 0)
350 pic16_sectioninfo.name_code = Safe_strdup( (char *)indexSet(tset, 0));
351 if(elementsInSet(tset) > 1)
352 pic16_sectioninfo.addr_code = atoi( (char *)indexSet(tset, 1));
356 if(ISOPT(NAME_IDATA)) {
357 setParseWithComma(&tset, getStringArg(NAME_IDATA, argv, i, *pargc));
358 if(elementsInSet(tset) > 0)
359 pic16_sectioninfo.name_idata = Safe_strdup( (char *)indexSet(tset, 0));
360 if(elementsInSet(tset) > 1)
361 pic16_sectioninfo.addr_idata = atoi( (char *)indexSet(tset, 1));
365 if(ISOPT(NAME_UDATA)) {
366 setParseWithComma(&tset, getStringArg(NAME_UDATA, argv, i, *pargc));
367 if(elementsInSet(tset) > 0)
368 pic16_sectioninfo.name_udata = Safe_strdup( (char *)indexSet(tset, 0));
369 if(elementsInSet(tset) > 1)
370 pic16_sectioninfo.addr_udata = atoi( (char *)indexSet(tset, 1));
374 if(ISOPT(NAME_UDATAACS)) {
375 setParseWithComma(&tset, getStringArg(NAME_UDATAACS, argv, i, *pargc));
376 if(elementsInSet(tset) > 0)
377 pic16_sectioninfo.name_udataacs = Safe_strdup( (char *)indexSet(tset, 0));
378 if(elementsInSet(tset) > 1)
379 pic16_sectioninfo.addr_udataacs = atoi( (char *)indexSet(tset, 1));
383 if(ISOPT(NAME_UDATAOVR)) {
384 setParseWithComma(&tset, getStringArg(NAME_UDATAOVR, argv, i, *pargc));
385 if(elementsInSet(tset) > 0)
386 pic16_sectioninfo.name_udataovr = Safe_strdup( (char *)indexSet(tset, 0));
387 if(elementsInSet(tset) > 1)
388 pic16_sectioninfo.addr_udataovr = atoi( (char *)indexSet(tset, 1));
392 if(ISOPT(NAME_UDATASHR)) {
393 setParseWithComma(&tset, getStringArg(NAME_UDATASHR, argv, i, *pargc));
394 if(elementsInSet(tset) > 0)
395 pic16_sectioninfo.name_udatashr = Safe_strdup( (char *)indexSet(tset, 0));
396 if(elementsInSet(tset) > 1)
397 pic16_sectioninfo.addr_udatashr = atoi( (char *)indexSet(tset, 1));
407 extern set *includeDirsSet;
408 extern set *dataDirsSet;
409 extern set *libFilesSet;
412 _pic16_finaliseOptions (void)
414 char pic16incDir[512];
415 char pic16libDir[512];
416 set *pic16incDirsSet;
417 set *pic16libDirsSet;
420 port->mem.default_local_map = data;
421 port->mem.default_globl_map = data;
423 options.all_callee_saves = 1; // always callee saves
424 options.float_rent = 1;
425 options.intlong_rent = 1;
427 setMainValue("mcu", pic16->name[2] );
428 addSet(&preArgvSet, Safe_strdup("-D{mcu}"));
430 sprintf(pic16incDir, "%s/pic16", INCLUDE_DIR_SUFFIX);
431 sprintf(pic16libDir, "%s/pic16", LIB_DIR_SUFFIX);
433 if(!options.nostdinc) {
434 /* setup pic16 include directory */
435 pic16incDirsSet = appendStrSet(dataDirsSet, NULL, pic16incDir);
436 mergeSets(&includeDirsSet, pic16incDirsSet);
439 if(!options.nostdlib) {
440 /* setup pic16 library directory */
441 pic16libDirsSet = appendStrSet(dataDirsSet, NULL, pic16libDir);
442 mergeSets(&libDirsSet, pic16libDirsSet);
444 /* now add the library for the device */
445 sprintf(devlib, "%s.lib", pic16->name[2]);
446 addSet(&libFilesSet, Safe_strdup(devlib));
451 /* all the rest is commented ifdef'd out */
453 /* Hack-o-matic: if we are using the flat24 model,
454 * adjust pointer sizes.
456 if (options.model == MODEL_FLAT24)
459 fprintf (stderr, "*** WARNING: you should use the '-mds390' option "
460 "for DS80C390 support. This code generator is "
461 "badly out of date and probably broken.\n");
463 port->s.fptr_size = 3;
464 port->s.gptr_size = 4;
465 port->stack.isr_overhead++; /* Will save dpx on ISR entry. */
467 port->stack.call_overhead++; /* This acounts for the extra byte
468 * of return addres on the stack.
469 * but is ugly. There must be a
473 fReturn = fReturn390;
477 if (options.model == MODEL_LARGE)
479 port->mem.default_local_map = xdata;
480 port->mem.default_globl_map = xdata;
484 port->mem.default_local_map = data;
485 port->mem.default_globl_map = data;
488 if (options.stack10bit)
490 if (options.model != MODEL_FLAT24)
493 "*** warning: 10 bit stack mode is only supported in flat24 model.\n");
494 fprintf (stderr, "\t10 bit stack mode disabled.\n");
495 options.stack10bit = 0;
499 /* Fixup the memory map for the stack; it is now in
500 * far space and requires a FPOINTER to access it.
503 istack->ptrType = FPOINTER;
510 _pic16_setDefaultOptions (void)
512 /* initialize to defaults section locations, names and addresses */
513 pic16_sectioninfo.at_udata = "udata";
514 pic16_sectioninfo.at_udataacs = "udata_acs";
515 pic16_sectioninfo.at_udataovr = "udata_ovr";
516 pic16_sectioninfo.at_udatashr = "udata_shr";
518 /* initialize to nothing, so let linker decide about their names */
519 pic16_sectioninfo.name_code =
520 pic16_sectioninfo.name_idata =
521 pic16_sectioninfo.name_udata =
522 pic16_sectioninfo.name_udataacs =
523 pic16_sectioninfo.name_udataovr =
524 pic16_sectioninfo.name_udatashr = "";
526 /* initialize to -1, so let linker decide about their address */
527 pic16_sectioninfo.addr_code =
528 pic16_sectioninfo.addr_idata =
529 pic16_sectioninfo.addr_udata =
530 pic16_sectioninfo.addr_udataacs =
531 pic16_sectioninfo.addr_udataovr =
532 pic16_sectioninfo.addr_udatashr = -1;
536 _pic16_getRegName (struct regs *reg)
545 static char *_pic16_mangleFunctionName(char *sz)
547 // fprintf(stderr, "mangled function name: %s\n", sz);
555 _pic16_genAssemblerPreamble (FILE * of)
557 char *name = pic16_processor_base_name();
561 fprintf(stderr,"WARNING: No Pic has been selected, defaulting to %s\n",name);
564 fprintf (of, "\tlist\tp=%s\n",&name[1]);
566 if(!pic16_options.omit_configw) {
567 fprintf (of, "\t__config 0x%x,0x%hhx\n", 0x300001, pic16_getConfigWord(0x300001));
568 fprintf (of, "\t__config 0x%x,0x%hhx\n", 0x300002, pic16_getConfigWord(0x300002));
569 fprintf (of, "\t__config 0x%x,0x%hhx\n", 0x300003, pic16_getConfigWord(0x300003));
570 fprintf (of, "\t__config 0x%x,0x%hhx\n", 0x300005, pic16_getConfigWord(0x300005));
571 fprintf (of, "\t__config 0x%x,0x%hhx\n", 0x300006, pic16_getConfigWord(0x300006));
572 fprintf (of, "\t__config 0x%x,0x%hhx\n", 0x300008, pic16_getConfigWord(0x300008));
573 fprintf (of, "\t__config 0x%x,0x%hhx\n", 0x300009, pic16_getConfigWord(0x300009));
574 fprintf (of, "\t__config 0x%x,0x%hhx\n", 0x30000a, pic16_getConfigWord(0x30000a));
575 fprintf (of, "\t__config 0x%x,0x%hhx\n", 0x30000b, pic16_getConfigWord(0x30000b));
576 fprintf (of, "\t__config 0x%x,0x%hhx\n", 0x30000c, pic16_getConfigWord(0x30000c));
577 fprintf (of, "\t__config 0x%x,0x%hhx\n", 0x30000d, pic16_getConfigWord(0x30000d));
580 fprintf (of, "\tradix dec\n");
583 /* Generate interrupt vector table. */
585 _pic16_genIVT (FILE * of, symbol ** interrupts, int maxInterrupts)
587 /* PIC18F family has only two interrupts, the high and the low
588 * priority interrupts, which reside at 0x0008 and 0x0018 respectively - VR */
590 if((!pic16_options.omit_ivt) || (pic16_options.omit_ivt && pic16_options.leave_reset)) {
591 fprintf(of, "; RESET vector\n");
592 fprintf(of, "\tgoto\t__sdcc_gsinit_startup\n");
595 if(!pic16_options.omit_ivt) {
596 fprintf(of, "\tres 4\n");
599 fprintf(of, "; High priority interrupt vector 0x0008\n");
601 fprintf(of, "\tgoto\t%s\n", interrupts[1]->rname);
602 fprintf(of, "\tres\t12\n");
604 fprintf(of, "\tretfie\n");
605 fprintf(of, "\tres\t14\n");
608 fprintf(of, "; Low priority interrupt vector 0x0018\n");
610 fprintf(of, "\tgoto\t%s\n", interrupts[2]->rname);
612 fprintf(of, "\tretfie\n");
619 /* return True if the port can handle the type,
620 * False to convert it to function call */
621 static bool _hasNativeMulFor (iCode *ic, sym_link *left, sym_link *right)
623 // sym_link *test = NULL;
626 // fprintf(stderr,"checking for native mult\n");
628 /* support mul for char/int */
629 if((getSize(OP_SYMBOL(IC_RESULT(ic))->type ) <= 2)
630 && (ic->op == '*'))return TRUE;
632 /* support div for char */
633 if((getSize(OP_SYMBOL(IC_RESULT(ic))->type ) < 2)
634 && (ic->op == '/'))return TRUE;
646 if ( IS_LITERAL (left))
648 fprintf(stderr,"left is lit\n");
650 val = OP_VALUE (IC_LEFT (ic));
652 else if ( IS_LITERAL (right))
654 fprintf(stderr,"right is lit\n");
656 val = OP_VALUE (IC_RIGHT (ic));
660 fprintf(stderr,"oops, neither is lit so no\n");
664 if ( getSize (test) <= 2)
666 fprintf(stderr,"yep\n");
669 fprintf(stderr,"nope\n");
677 /* Indicate which extended bit operations this port supports */
679 hasExtBitOp (int op, int size)
683 /* || op == GETHBIT */ /* GETHBIT doesn't look complete for PIC */
690 /* Indicate the expense of an access to an output storage class */
692 oclsExpense (struct memmap *oclass)
694 /* The IN_FARSPACE test is compatible with historical behaviour, */
695 /* but I don't think it is applicable to PIC. If so, please feel */
696 /* free to remove this test -- EEP */
697 if (IN_FARSPACE(oclass))
703 /** $1 is always the basename.
704 $2 is always the output file.
705 $3 -L path and -l libraries
706 $l is the list of extra options that should be there somewhere...
707 MUST be terminated with a NULL.
709 static const char *_linkCmd[] =
711 "gplink", "$3", "\"$1.o\"", "-o $1", "$l", NULL
716 /** $1 is always the basename.
717 $2 is always the output file.
718 $3 varies (nothing currently)
719 $l is the list of extra options that should be there somewhere...
720 MUST be terminated with a NULL.
722 static const char *_asmCmd[] =
724 "gpasm", "$l", "$3", "-c", "\"$1.asm\"", NULL
733 "MCU PIC16", /* Target name */
734 "p18f452", /* Processor */
737 TRUE, /* Emit glue around main */
738 MODEL_SMALL | MODEL_LARGE | MODEL_FLAT24,
742 _asmCmd, /* assembler command and arguments */
743 NULL, /* alternate macro based form */
744 NULL, /* arguments for debug mode */
745 NULL, /* arguments for normal mode */
746 0, /* print externs as global */
747 ".asm", /* assembler file extension */
748 NULL /* no do_assemble function */
751 _linkCmd, /* linker command and arguments */
752 NULL, /* alternate macro based form */
753 NULL, /* no do_link function */
754 ".o", /* extension for object files */
755 0 /* no need for linker file */
767 3, /* fptr, far pointers (see Microchip) */
774 "XSEG (XDATA)", // xstack
775 "STACK (DATA)", // istack
776 "CSEG (CODE)", // code
777 "DSEG (DATA)", // data
778 "ISEG (DATA)", // idata
779 "XSEG (XDATA)", // xdata
781 "RSEG (DATA)", // reg
782 "GSINIT (CODE)", // static
783 "OSEG (OVR,DATA)", // overlay
784 "GSFINAL (CODE)", // post static
785 "HOME (CODE)", // home
788 NULL, // default location for auto vars
789 NULL, // default location for global vars
790 1 // code is read only 1=yes
793 NULL, /* genExtraAreaDeclaration */
794 NULL /* genExatrAreaLinkOptions */
797 /* stack related information */
798 -1, /* -1 stack grows downwards, +1 upwards */
799 1, /* extra overhead when calling between banks */
800 4, /* extra overhead when the function is an ISR */
801 1, /* extra overhead for a function call */
802 1, /* re-entrant space */
803 0 /* 'banked' call overhead, mild overlap with bank_overhead */
805 /* pic16 has an 8 bit mul */
813 _pic16_finaliseOptions,
814 _pic16_setDefaultOptions,
815 pic16_assignRegisters,
818 _pic16_genAssemblerPreamble,
819 NULL, /* no genAssemblerEnd */
821 NULL, // _pic16_genXINIT
822 _pic16_reset_regparm,
824 _process_pragma, /* process a pragma */
825 _pic16_mangleFunctionName, /* mangles function name */
827 hasExtBitOp, /* hasExtBitOp */
828 oclsExpense, /* oclsExpense */
830 TRUE, /* little endian */
833 1, /* transform <= to ! > */
834 1, /* transform >= to ! < */
835 1, /* transform != to !(a == b) */
837 FALSE, /* No array initializer support. */
838 0, /* no CSE cost estimation yet */
839 NULL, /* no builtin functions */
840 GPOINTER, /* treat unqualified pointers as "generic" pointers */
841 1, /* reset labelKey to 1 */
842 1, /* globals & local static allowed */