Merged revisions 7707-7722 via svnmerge from
[cacao.git] / src / vm / jit / alpha / emit.c
1 /* src/vm/jit/alpha/emit.c - Alpha code emitter functions
2
3    Copyright (C) 1996-2005, 2006, 2007 R. Grafl, A. Krall, C. Kruegel,
4    C. Oates, R. Obermaisser, M. Platter, M. Probst, S. Ring,
5    E. Steiner, C. Thalinger, D. Thuernbeck, P. Tomsich, C. Ullrich,
6    J. Wenninger, Institut f. Computersprachen - TU Wien
7
8    This file is part of CACAO.
9
10    This program is free software; you can redistribute it and/or
11    modify it under the terms of the GNU General Public License as
12    published by the Free Software Foundation; either version 2, or (at
13    your option) any later version.
14
15    This program is distributed in the hope that it will be useful, but
16    WITHOUT ANY WARRANTY; without even the implied warranty of
17    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
18    General Public License for more details.
19
20    You should have received a copy of the GNU General Public License
21    along with this program; if not, write to the Free Software
22    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
23    02110-1301, USA.
24
25    $Id: emit.c 4398 2006-01-31 23:43:08Z twisti $
26
27 */
28
29
30 #include "config.h"
31 #include "vm/types.h"
32
33 #include <assert.h>
34
35 #include "md-abi.h"
36
37 #include "vm/jit/alpha/codegen.h"
38
39 #include "mm/memory.h"
40
41 #if defined(ENABLE_THREADS)
42 # include "threads/native/lock.h"
43 #endif
44
45 #include "vm/builtin.h"
46 #include "vm/exceptions.h"
47
48 #include "vm/jit/abi.h"
49 #include "vm/jit/abi-asm.h"
50 #include "vm/jit/asmpart.h"
51 #include "vm/jit/dseg.h"
52 #include "vm/jit/emit-common.h"
53 #include "vm/jit/jit.h"
54 #include "vm/jit/replace.h"
55
56 #include "vmcore/options.h"
57
58
59 /* emit_load *******************************************************************
60
61    Emits a possible load of an operand.
62
63 *******************************************************************************/
64
65 s4 emit_load(jitdata *jd, instruction *iptr, varinfo *src, s4 tempreg)
66 {
67         codegendata  *cd;
68         s4            disp;
69         s4            reg;
70
71         /* get required compiler data */
72
73         cd = jd->cd;
74
75         if (IS_INMEMORY(src->flags)) {
76                 COUNT_SPILLS;
77
78                 disp = src->vv.regoff * 8;
79
80                 switch (src->type) {
81                 case TYPE_INT:
82                 case TYPE_LNG:
83                 case TYPE_ADR:
84                         M_LLD(tempreg, REG_SP, disp);
85                         break;
86                 case TYPE_FLT:
87                 case TYPE_DBL:
88                         M_DLD(tempreg, REG_SP, disp);
89                         break;
90                 default:
91                         vm_abort("emit_load: unknown type %d", src->type);
92                 }
93
94                 reg = tempreg;
95         }
96         else
97                 reg = src->vv.regoff;
98
99         return reg;
100 }
101
102
103 /* emit_store ******************************************************************
104
105    Emit a possible store for the given variable.
106
107 *******************************************************************************/
108
109 void emit_store(jitdata *jd, instruction *iptr, varinfo *dst, s4 d)
110 {
111         codegendata  *cd;
112         s4            disp;
113
114         /* get required compiler data */
115
116         cd = jd->cd;
117
118         if (IS_INMEMORY(dst->flags)) {
119                 COUNT_SPILLS;
120
121                 disp = dst->vv.regoff * 8;
122
123                 switch (dst->type) {
124                 case TYPE_INT:
125                 case TYPE_LNG:
126                 case TYPE_ADR:
127                         M_LST(d, REG_SP, disp);
128                         break;
129                 case TYPE_FLT:
130                 case TYPE_DBL:
131                         M_DST(d, REG_SP, disp);
132                         break;
133                 default:
134                         vm_abort("emit_store: unknown type %d", dst->type);
135                 }
136         }
137 }
138
139
140 /* emit_copy *******************************************************************
141
142    Generates a register/memory to register/memory copy.
143
144 *******************************************************************************/
145
146 void emit_copy(jitdata *jd, instruction *iptr, varinfo *src, varinfo *dst)
147 {
148         codegendata  *cd;
149         s4            s1, d;
150
151         /* get required compiler data */
152
153         cd = jd->cd;
154
155         if ((src->vv.regoff != dst->vv.regoff) ||
156                 ((src->flags ^ dst->flags) & INMEMORY)) {
157
158                 /* If one of the variables resides in memory, we can eliminate
159                    the register move from/to the temporary register with the
160                    order of getting the destination register and the load. */
161
162                 if (IS_INMEMORY(src->flags)) {
163                         d = codegen_reg_of_var(iptr->opc, dst, REG_IFTMP);
164                         s1 = emit_load(jd, iptr, src, d);
165                 }
166                 else {
167                         s1 = emit_load(jd, iptr, src, REG_IFTMP);
168                         d = codegen_reg_of_var(iptr->opc, dst, s1);
169                 }
170
171                 if (s1 != d) {
172                         switch (src->type) {
173                         case TYPE_INT:
174                         case TYPE_LNG:
175                         case TYPE_ADR:
176                                 M_MOV(s1, d);
177                                 break;
178                         case TYPE_FLT:
179                         case TYPE_DBL:
180                                 M_FMOV(s1, d);
181                                 break;
182                         default:
183                                 vm_abort("emit_copy: unknown type %d", src->type);
184                         }
185                 }
186
187                 emit_store(jd, iptr, dst, d);
188         }
189 }
190
191
192 /* emit_iconst *****************************************************************
193
194    XXX
195
196 *******************************************************************************/
197
198 void emit_iconst(codegendata *cd, s4 d, s4 value)
199 {
200         s4 disp;
201
202         if ((value >= -32768) && (value <= 32767))
203                 M_LDA_INTERN(d, REG_ZERO, value);
204         else {
205                 disp = dseg_add_s4(cd, value);
206                 M_ILD(d, REG_PV, disp);
207         }
208 }
209
210
211 /* emit_lconst *****************************************************************
212
213    XXX
214
215 *******************************************************************************/
216
217 void emit_lconst(codegendata *cd, s4 d, s8 value)
218 {
219         s4 disp;
220
221         if ((value >= -32768) && (value <= 32767))
222                 M_LDA_INTERN(d, REG_ZERO, value);
223         else {
224                 disp = dseg_add_s8(cd, value);
225                 M_LLD(d, REG_PV, disp);
226         }
227 }
228
229
230 /* emit_branch *****************************************************************
231
232    Emits the code for conditional and unconditional branchs.
233
234 *******************************************************************************/
235
236 void emit_branch(codegendata *cd, s4 disp, s4 condition, s4 reg, u4 opt)
237 {
238         s4 checkdisp;
239         s4 branchdisp;
240
241         /* calculate the different displacements */
242
243         checkdisp  = (disp - 4);
244         branchdisp = (disp - 4) >> 2;
245
246         /* check which branch to generate */
247
248         if (condition == BRANCH_UNCONDITIONAL) {
249                 /* check displacement for overflow */
250
251                 if ((checkdisp < (s4) 0xffe00000) || (checkdisp > (s4) 0x001fffff)) {
252                         /* if the long-branches flag isn't set yet, do it */
253
254                         if (!CODEGENDATA_HAS_FLAG_LONGBRANCHES(cd)) {
255                                 log_println("setting error");
256                                 cd->flags |= (CODEGENDATA_FLAG_ERROR |
257                                                           CODEGENDATA_FLAG_LONGBRANCHES);
258                         }
259
260                         vm_abort("emit_branch: emit unconditional long-branch code");
261                 }
262                 else {
263                         M_BR(branchdisp);
264                 }
265         }
266         else {
267                 /* and displacement for overflow */
268
269                 if ((checkdisp < (s4) 0xffe00000) || (checkdisp > (s4) 0x001fffff)) {
270                         /* if the long-branches flag isn't set yet, do it */
271
272                         if (!CODEGENDATA_HAS_FLAG_LONGBRANCHES(cd)) {
273                                 log_println("setting error");
274                                 cd->flags |= (CODEGENDATA_FLAG_ERROR |
275                                                           CODEGENDATA_FLAG_LONGBRANCHES);
276                         }
277
278                         vm_abort("emit_branch: emit conditional long-branch code");
279                 }
280                 else {
281                         switch (condition) {
282                         case BRANCH_EQ:
283                                 M_BEQZ(reg, branchdisp);
284                                 break;
285                         case BRANCH_NE:
286                                 M_BNEZ(reg, branchdisp);
287                                 break;
288                         case BRANCH_LT:
289                                 M_BLTZ(reg, branchdisp);
290                                 break;
291                         case BRANCH_GE:
292                                 M_BGEZ(reg, branchdisp);
293                                 break;
294                         case BRANCH_GT:
295                                 M_BGTZ(reg, branchdisp);
296                                 break;
297                         case BRANCH_LE:
298                                 M_BLEZ(reg, branchdisp);
299                                 break;
300                         default:
301                                 vm_abort("emit_branch: unknown condition %d", condition);
302                         }
303                 }
304         }
305 }
306
307
308 /* emit_arithmetic_check *******************************************************
309
310    Emit an ArithmeticException check.
311
312 *******************************************************************************/
313
314 void emit_arithmetic_check(codegendata *cd, instruction *iptr, s4 reg)
315 {
316         if (INSTRUCTION_MUST_CHECK(iptr)) {
317                 M_BNEZ(reg, 1);
318                 /* Destination register must not be REG_ZERO, because then no
319                    SIGSEGV is thrown. */
320                 M_ALD_INTERN(reg, REG_ZERO, EXCEPTION_HARDWARE_ARITHMETIC);
321         }
322 }
323
324
325 /* emit_arrayindexoutofbounds_check ********************************************
326
327    Emit an ArrayIndexOutOfBoundsException check.
328
329 *******************************************************************************/
330
331 void emit_arrayindexoutofbounds_check(codegendata *cd, instruction *iptr, s4 s1, s4 s2)
332 {
333         if (INSTRUCTION_MUST_CHECK(iptr)) {
334                 M_ILD(REG_ITMP3, s1, OFFSET(java_arrayheader, size));
335                 M_CMPULT(s2, REG_ITMP3, REG_ITMP3);
336                 M_BNEZ(REG_ITMP3, 1);
337                 M_ALD_INTERN(s2, REG_ZERO, EXCEPTION_HARDWARE_ARRAYINDEXOUTOFBOUNDS);
338         }
339 }
340
341
342 /* emit_classcast_check ********************************************************
343
344    Emit a ClassCastException check.
345
346 *******************************************************************************/
347
348 void emit_classcast_check(codegendata *cd, instruction *iptr, s4 condition, s4 reg, s4 s1)
349 {
350         if (INSTRUCTION_MUST_CHECK(iptr)) {
351                 switch (condition) {
352                 case BRANCH_EQ:
353                         M_BNEZ(reg, 1);
354                         break;
355                 case BRANCH_LE:
356                         M_BGTZ(reg, 1);
357                         break;
358                 default:
359                         vm_abort("emit_classcast_check: unknown condition %d", condition);
360                 }
361                 M_ALD_INTERN(s1, REG_ZERO, EXCEPTION_HARDWARE_CLASSCAST);
362         }
363 }
364
365
366 /* emit_nullpointer_check ******************************************************
367
368    Emit a NullPointerException check.
369
370 *******************************************************************************/
371
372 void emit_nullpointer_check(codegendata *cd, instruction *iptr, s4 reg)
373 {
374         if (INSTRUCTION_MUST_CHECK(iptr)) {
375                 M_BNEZ(reg, 1);
376                 /* Destination register must not be REG_ZERO, because then no
377                    SIGSEGV is thrown. */
378                 M_ALD_INTERN(reg, REG_ZERO, EXCEPTION_HARDWARE_NULLPOINTER);
379         }
380 }
381
382
383 /* emit_exception_check ********************************************************
384
385    Emit an Exception check.
386
387 *******************************************************************************/
388
389 void emit_exception_check(codegendata *cd, instruction *iptr)
390 {
391         if (INSTRUCTION_MUST_CHECK(iptr)) {
392                 M_BNEZ(REG_RESULT, 1);
393                 /* Destination register must not be REG_ZERO, because then no
394                    SIGSEGV is thrown. */
395                 M_ALD_INTERN(REG_RESULT, REG_ZERO, EXCEPTION_HARDWARE_EXCEPTION);
396         }
397 }
398
399
400 /* emit_patcher_stubs **********************************************************
401
402    Generates the code for the patcher stubs.
403
404 *******************************************************************************/
405
406 void emit_patcher_stubs(jitdata *jd)
407 {
408         codegendata *cd;
409         patchref    *pref;
410         u4           mcode;
411         u1          *savedmcodeptr;
412         u1          *tmpmcodeptr;
413         s4           targetdisp;
414         s4           disp;
415
416         /* get required compiler data */
417
418         cd = jd->cd;
419
420         /* generate code patching stub call code */
421
422         targetdisp = 0;
423
424         for (pref = cd->patchrefs; pref != NULL; pref = pref->next) {
425                 /* check code segment size */
426
427                 MCODECHECK(100);
428
429                 /* Get machine code which is patched back in later. The
430                    call is 1 instruction word long. */
431
432                 tmpmcodeptr = (u1 *) (cd->mcodebase + pref->branchpos);
433
434                 mcode = *((u4 *) tmpmcodeptr);
435
436                 /* Patch in the call to call the following code (done at
437                    compile time). */
438
439                 savedmcodeptr = cd->mcodeptr;   /* save current mcodeptr              */
440                 cd->mcodeptr  = tmpmcodeptr;    /* set mcodeptr to patch position     */
441
442                 disp = ((u4 *) savedmcodeptr) - (((u4 *) tmpmcodeptr) + 1);
443                 M_BSR(REG_ITMP3, disp);
444
445                 cd->mcodeptr = savedmcodeptr;   /* restore the current mcodeptr       */
446
447                 /* create stack frame */
448
449                 M_LSUB_IMM(REG_SP, 6 * 8, REG_SP);
450
451                 /* move return address onto stack */
452
453                 M_AST(REG_ITMP3, REG_SP, 5 * 8);
454
455                 /* move pointer to java_objectheader onto stack */
456
457 #if defined(ENABLE_THREADS)
458                 /* create a virtual java_objectheader */
459
460                 (void) dseg_add_unique_address(cd, NULL);                  /* flcword */
461                 (void) dseg_add_unique_address(cd, lock_get_initial_lock_word());
462                 disp = dseg_add_unique_address(cd, NULL);                  /* vftbl   */
463
464                 M_LDA(REG_ITMP3, REG_PV, disp);
465                 M_AST(REG_ITMP3, REG_SP, 4 * 8);
466 #else
467                 /* nothing to do */
468 #endif
469
470                 /* move machine code onto stack */
471
472                 disp = dseg_add_s4(cd, mcode);
473                 M_ILD(REG_ITMP3, REG_PV, disp);
474                 M_IST(REG_ITMP3, REG_SP, 3 * 8);
475
476                 /* move class/method/field reference onto stack */
477
478                 disp = dseg_add_address(cd, pref->ref);
479                 M_ALD(REG_ITMP3, REG_PV, disp);
480                 M_AST(REG_ITMP3, REG_SP, 2 * 8);
481
482                 /* move data segment displacement onto stack */
483
484                 disp = dseg_add_s4(cd, pref->disp);
485                 M_ILD(REG_ITMP3, REG_PV, disp);
486                 M_IST(REG_ITMP3, REG_SP, 1 * 8);
487
488                 /* move patcher function pointer onto stack */
489
490                 disp = dseg_add_functionptr(cd, pref->patcher);
491                 M_ALD(REG_ITMP3, REG_PV, disp);
492                 M_AST(REG_ITMP3, REG_SP, 0 * 8);
493
494                 if (targetdisp == 0) {
495                         targetdisp = ((u4 *) cd->mcodeptr) - ((u4 *) cd->mcodebase);
496
497                         disp = dseg_add_functionptr(cd, asm_patcher_wrapper);
498                         M_ALD(REG_ITMP3, REG_PV, disp);
499                         M_JMP(REG_ZERO, REG_ITMP3);
500                 }
501                 else {
502                         disp = (((u4 *) cd->mcodebase) + targetdisp) -
503                                 (((u4 *) cd->mcodeptr) + 1);
504
505                         M_BR(disp);
506                 }
507         }
508 }
509
510
511 /* emit_replacement_stubs ******************************************************
512
513    Generates the code for the replacement stubs.
514
515 *******************************************************************************/
516
517 #if defined(ENABLE_REPLACEMENT)
518 void emit_replacement_stubs(jitdata *jd)
519 {
520         codegendata *cd;
521         codeinfo    *code;
522         rplpoint    *rplp;
523         s4           disp;
524         s4           i;
525 #if !defined(NDEBUG)
526         u1          *savedmcodeptr;
527 #endif
528
529         /* get required compiler data */
530
531         cd   = jd->cd;
532         code = jd->code;
533
534         rplp = code->rplpoints;
535
536         /* store beginning of replacement stubs */
537
538         code->replacementstubs = (u1*) (cd->mcodeptr - cd->mcodebase);
539
540         for (i = 0; i < code->rplpointcount; ++i, ++rplp) {
541                 /* do not generate stubs for non-trappable points */
542
543                 if (rplp->flags & RPLPOINT_FLAG_NOTRAP)
544                         continue;
545
546                 /* check code segment size */
547
548                 MCODECHECK(100);
549
550 #if !defined(NDEBUG)
551                 savedmcodeptr = cd->mcodeptr;
552 #endif
553
554                 /* create stack frame - 16-byte aligned */
555
556                 M_LSUB_IMM(REG_SP, 2 * 8, REG_SP);
557
558                 /* push address of `rplpoint` struct */
559
560                 disp = dseg_add_address(cd, rplp);
561                 M_ALD(REG_ITMP3, REG_PV, disp);
562                 M_AST(REG_ITMP3, REG_SP, 0 * 8);
563
564                 /* jump to replacement function */
565
566                 disp = dseg_add_functionptr(cd, asm_replacement_out);
567                 M_ALD(REG_ITMP3, REG_PV, disp);
568                 M_JMP(REG_ZERO, REG_ITMP3);
569
570                 assert((cd->mcodeptr - savedmcodeptr) == 4*REPLACEMENT_STUB_SIZE);
571         }
572 }
573 #endif /* defined(ENABLE_REPLACEMENT) */
574
575
576 /* emit_verbosecall_enter ******************************************************
577
578    Generates the code for the call trace.
579
580 *******************************************************************************/
581
582 #if !defined(NDEBUG)
583 void emit_verbosecall_enter(jitdata *jd)
584 {
585         methodinfo   *m;
586         codegendata  *cd;
587         registerdata *rd;
588         methoddesc   *md;
589         s4            disp;
590         s4            i, t;
591
592         /* get required compiler data */
593
594         m  = jd->m;
595         cd = jd->cd;
596         rd = jd->rd;
597
598         md = m->parseddesc;
599
600         /* mark trace code */
601
602         M_NOP;
603
604         M_LDA(REG_SP, REG_SP, -((ARG_CNT + TMP_CNT + 2) * 8));
605         M_AST(REG_RA, REG_SP, 1 * 8);
606
607         /* save argument registers */
608
609         for (i = 0; i < INT_ARG_CNT; i++)
610                 M_LST(abi_registers_integer_argument[i], REG_SP, (2 + i) * 8);
611
612         for (i = 0; i < FLT_ARG_CNT; i++)
613                 M_DST(abi_registers_float_argument[i], REG_SP, (2 + INT_ARG_CNT + i) * 8);
614
615         /* save temporary registers for leaf methods */
616
617         if (jd->isleafmethod) {
618                 for (i = 0; i < INT_TMP_CNT; i++)
619                         M_LST(rd->tmpintregs[i], REG_SP, (2 + ARG_CNT + i) * 8);
620
621                 for (i = 0; i < FLT_TMP_CNT; i++)
622                         M_DST(rd->tmpfltregs[i], REG_SP, (2 + ARG_CNT + INT_TMP_CNT + i) * 8);
623         }
624
625         /* load float arguments into integer registers */
626
627         for (i = 0; i < md->paramcount && i < INT_ARG_CNT; i++) {
628                 t = md->paramtypes[i].type;
629
630                 if (IS_FLT_DBL_TYPE(t)) {
631                         if (IS_2_WORD_TYPE(t)) {
632                                 M_DST(abi_registers_float_argument[i], REG_SP, 0 * 8);
633                                 M_LLD(abi_registers_integer_argument[i], REG_SP, 0 * 8);
634                         }
635                         else {
636                                 M_FST(abi_registers_float_argument[i], REG_SP, 0 * 8);
637                                 M_ILD(abi_registers_integer_argument[i], REG_SP, 0 * 8);
638                         }
639                 }
640         }
641
642         disp = dseg_add_address(cd, m);
643         M_ALD(REG_ITMP1, REG_PV, disp);
644         M_AST(REG_ITMP1, REG_SP, 0 * 8);
645         disp = dseg_add_functionptr(cd, builtin_verbosecall_enter);
646         M_ALD(REG_PV, REG_PV, disp);
647         M_JSR(REG_RA, REG_PV);
648         disp = (s4) (cd->mcodeptr - cd->mcodebase);
649         M_LDA(REG_PV, REG_RA, -disp);
650         M_ALD(REG_RA, REG_SP, 1 * 8);
651
652         /* restore argument registers */
653
654         for (i = 0; i < INT_ARG_CNT; i++)
655                 M_LLD(abi_registers_integer_argument[i], REG_SP, (2 + i) * 8);
656
657         for (i = 0; i < FLT_ARG_CNT; i++)
658                 M_DLD(abi_registers_float_argument[i], REG_SP, (2 + INT_ARG_CNT + i) * 8);
659
660         /* restore temporary registers for leaf methods */
661
662         if (jd->isleafmethod) {
663                 for (i = 0; i < INT_TMP_CNT; i++)
664                         M_LLD(rd->tmpintregs[i], REG_SP, (2 + ARG_CNT + i) * 8);
665
666                 for (i = 0; i < FLT_TMP_CNT; i++)
667                         M_DLD(rd->tmpfltregs[i], REG_SP, (2 + ARG_CNT + INT_TMP_CNT + i) * 8);
668         }
669
670         M_LDA(REG_SP, REG_SP, (ARG_CNT + TMP_CNT + 2) * 8);
671
672         /* mark trace code */
673
674         M_NOP;
675 }
676 #endif /* !defined(NDEBUG) */
677
678
679 /* emit_verbosecall_exit *******************************************************
680
681    Generates the code for the call trace.
682
683    void builtin_verbosecall_exit(s8 l, double d, float f, methodinfo *m);
684
685 *******************************************************************************/
686
687 #if !defined(NDEBUG)
688 void emit_verbosecall_exit(jitdata *jd)
689 {
690         methodinfo   *m;
691         codegendata  *cd;
692         registerdata *rd;
693         s4            disp;
694
695         /* get required compiler data */
696
697         m  = jd->m;
698         cd = jd->cd;
699         rd = jd->rd;
700
701         /* mark trace code */
702
703         M_NOP;
704
705         M_ASUB_IMM(REG_SP, 4 * 8, REG_SP);
706         M_AST(REG_RA, REG_SP, 0 * 8);
707
708         M_LST(REG_RESULT, REG_SP, 1 * 8);
709         M_DST(REG_FRESULT, REG_SP, 2 * 8);
710
711         M_MOV(REG_RESULT, REG_A0);
712         M_FMOV(REG_FRESULT, REG_FA1);
713         M_FMOV(REG_FRESULT, REG_FA2);
714
715         disp = dseg_add_address(cd, m);
716         M_ALD(REG_A3, REG_PV, disp);
717
718         disp = dseg_add_functionptr(cd, builtin_verbosecall_exit);
719         M_ALD(REG_PV, REG_PV, disp);
720         M_JSR(REG_RA, REG_PV);
721         disp = (cd->mcodeptr - cd->mcodebase);
722         M_LDA(REG_PV, REG_RA, -disp);
723
724         M_DLD(REG_FRESULT, REG_SP, 2 * 8);
725         M_LLD(REG_RESULT, REG_SP, 1 * 8);
726
727         M_ALD(REG_RA, REG_SP, 0 * 8);
728         M_AADD_IMM(REG_SP, 4 * 8, REG_SP);
729
730         /* mark trace code */
731
732         M_NOP;
733 }
734 #endif /* !defined(NDEBUG) */
735
736
737 /*
738  * These are local overrides for various environment variables in Emacs.
739  * Please do not remove this and leave it at the end of the file, where
740  * Emacs will automagically detect them.
741  * ---------------------------------------------------------------------
742  * Local variables:
743  * mode: c
744  * indent-tabs-mode: t
745  * c-basic-offset: 4
746  * tab-width: 4
747  * End:
748  * vim:noexpandtab:sw=4:ts=4:
749  */