1 |
709 |
jeremybenn |
/* Definitions for BSD assembler syntax for Intel 386
|
2 |
|
|
(actually AT&T syntax for insns and operands,
|
3 |
|
|
adapted to BSD conventions for symbol names and debugging.)
|
4 |
|
|
Copyright (C) 1988, 1996, 2000, 2002, 2007, 2008
|
5 |
|
|
Free Software Foundation, Inc.
|
6 |
|
|
|
7 |
|
|
This file is part of GCC.
|
8 |
|
|
|
9 |
|
|
GCC is free software; you can redistribute it and/or modify
|
10 |
|
|
it under the terms of the GNU General Public License as published by
|
11 |
|
|
the Free Software Foundation; either version 3, or (at your option)
|
12 |
|
|
any later version.
|
13 |
|
|
|
14 |
|
|
GCC is distributed in the hope that it will be useful,
|
15 |
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
16 |
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
17 |
|
|
GNU General Public License for more details.
|
18 |
|
|
|
19 |
|
|
You should have received a copy of the GNU General Public License
|
20 |
|
|
along with GCC; see the file COPYING3. If not see
|
21 |
|
|
<http://www.gnu.org/licenses/>. */
|
22 |
|
|
|
23 |
|
|
/* Use the Sequent Symmetry assembler syntax. */
|
24 |
|
|
|
25 |
|
|
/* Define the syntax of pseudo-ops, labels and comments. */
|
26 |
|
|
|
27 |
|
|
/* Prefix for internally generated assembler labels. If we aren't using
|
28 |
|
|
underscores, we are using prefix `.'s to identify labels that should
|
29 |
|
|
be ignored, as in `i386/gas.h' --karl@cs.umb.edu */
|
30 |
|
|
|
31 |
|
|
#define LPREFIX "L"
|
32 |
|
|
|
33 |
|
|
/* Assembler pseudos to introduce constants of various size. */
|
34 |
|
|
|
35 |
|
|
#define ASM_BYTE "\t.byte\t"
|
36 |
|
|
#define ASM_SHORT "\t.word\t"
|
37 |
|
|
#define ASM_LONG "\t.long\t"
|
38 |
|
|
#define ASM_QUAD "\t.quad\t" /* Should not be used for 32bit compilation. */
|
39 |
|
|
|
40 |
|
|
/* This was suggested, but it shouldn't be right for DBX output. -- RMS
|
41 |
|
|
#define ASM_OUTPUT_SOURCE_FILENAME(FILE, NAME) */
|
42 |
|
|
|
43 |
|
|
|
44 |
|
|
/* Define the syntax of labels and symbol definitions/declarations. */
|
45 |
|
|
|
46 |
|
|
/* This is how to output an assembler line
|
47 |
|
|
that says to advance the location counter by SIZE bytes. */
|
48 |
|
|
|
49 |
|
|
#define ASM_OUTPUT_SKIP(FILE,SIZE) \
|
50 |
|
|
fprintf (FILE, "\t.space "HOST_WIDE_INT_PRINT_UNSIGNED"\n", (SIZE))
|
51 |
|
|
|
52 |
|
|
/* Define the syntax of labels and symbol definitions/declarations. */
|
53 |
|
|
|
54 |
|
|
/* This says how to output an assembler line
|
55 |
|
|
to define a global common symbol. */
|
56 |
|
|
|
57 |
|
|
#define ASM_OUTPUT_COMMON(FILE, NAME, SIZE, ROUNDED) \
|
58 |
|
|
( fputs (".comm ", (FILE)), \
|
59 |
|
|
assemble_name ((FILE), (NAME)), \
|
60 |
|
|
fprintf ((FILE), ",%u\n", (int)(ROUNDED)))
|
61 |
|
|
|
62 |
|
|
/* This says how to output an assembler line
|
63 |
|
|
to define a local common symbol. */
|
64 |
|
|
|
65 |
|
|
#define ASM_OUTPUT_LOCAL(FILE, NAME, SIZE, ROUNDED) \
|
66 |
|
|
( fputs (".lcomm ", (FILE)), \
|
67 |
|
|
assemble_name ((FILE), (NAME)), \
|
68 |
|
|
fprintf ((FILE), ",%u\n", (int)(ROUNDED)))
|
69 |
|
|
|
70 |
|
|
#ifdef HAVE_GAS_LCOMM_WITH_ALIGNMENT
|
71 |
|
|
#define ASM_OUTPUT_ALIGNED_LOCAL(FILE, NAME, SIZE, ALIGNMENT) \
|
72 |
|
|
( fputs (".lcomm ", (FILE)), \
|
73 |
|
|
assemble_name ((FILE), (NAME)), \
|
74 |
|
|
fprintf ((FILE), ",%u,%u\n", (int)(SIZE), (int)(ALIGNMENT) / BITS_PER_UNIT))
|
75 |
|
|
#endif
|
76 |
|
|
|
77 |
|
|
/* This is how to output an assembler line
|
78 |
|
|
that says to advance the location counter
|
79 |
|
|
to a multiple of 2**LOG bytes. */
|
80 |
|
|
|
81 |
|
|
#define ASM_OUTPUT_ALIGN(FILE,LOG) \
|
82 |
|
|
if ((LOG)!=0) fprintf ((FILE), "\t.align %d\n", (LOG))
|
83 |
|
|
|
84 |
|
|
/* This is how to store into the string BUF
|
85 |
|
|
the symbol_ref name of an internal numbered label where
|
86 |
|
|
PREFIX is the class of label and NUM is the number within the class.
|
87 |
|
|
This is suitable for output with `assemble_name'. */
|
88 |
|
|
|
89 |
|
|
#define ASM_GENERATE_INTERNAL_LABEL(BUF,PREFIX,NUMBER) \
|
90 |
|
|
sprintf ((BUF), "*%s%ld", (PREFIX), (long)(NUMBER))
|
91 |
|
|
|
92 |
|
|
/* The prefix to add to user-visible assembler symbols. */
|
93 |
|
|
|
94 |
|
|
#define USER_LABEL_PREFIX "_"
|
95 |
|
|
|
96 |
|
|
/* Sequent has some changes in the format of DBX symbols. */
|
97 |
|
|
#define DBX_NO_XREFS 1
|
98 |
|
|
|
99 |
|
|
/* Don't split DBX symbols into continuations. */
|
100 |
|
|
#define DBX_CONTIN_LENGTH 0
|