bsd.h revision 132718
1/* 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 Free Software Foundation, Inc.
5
6This file is part of GCC.
7
8GCC is free software; you can redistribute it and/or modify
9it under the terms of the GNU General Public License as published by
10the Free Software Foundation; either version 2, or (at your option)
11any later version.
12
13GCC is distributed in the hope that it will be useful,
14but WITHOUT ANY WARRANTY; without even the implied warranty of
15MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16GNU General Public License for more details.
17
18You should have received a copy of the GNU General Public License
19along with GCC; see the file COPYING.  If not, write to
20the Free Software Foundation, 59 Temple Place - Suite 330,
21Boston, MA 02111-1307, USA.  */
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_SHORT "\t.word\t"
36#define ASM_LONG "\t.long\t"
37#define ASM_QUAD "\t.quad\t"  /* Should not be used for 32bit compilation.  */
38
39/* This was suggested, but it shouldn't be right for DBX output. -- RMS
40   #define ASM_OUTPUT_SOURCE_FILENAME(FILE, NAME) */
41
42
43/* Define the syntax of labels and symbol definitions/declarations.  */
44
45/* This is how to output an assembler line
46   that says to advance the location counter by SIZE bytes.  */
47
48#define ASM_OUTPUT_SKIP(FILE,SIZE)  \
49  fprintf (FILE, "\t.space "HOST_WIDE_INT_PRINT_UNSIGNED"\n", (SIZE))
50
51/* Define the syntax of labels and symbol definitions/declarations.  */
52
53/* This says how to output an assembler line
54   to define a global common symbol.  */
55
56#define ASM_OUTPUT_COMMON(FILE, NAME, SIZE, ROUNDED)  \
57( fputs (".comm ", (FILE)),			\
58  assemble_name ((FILE), (NAME)),		\
59  fprintf ((FILE), ",%u\n", (int)(ROUNDED)))
60
61/* This says how to output an assembler line
62   to define a local common symbol.  */
63
64#define ASM_OUTPUT_LOCAL(FILE, NAME, SIZE, ROUNDED)  \
65( fputs (".lcomm ", (FILE)),			\
66  assemble_name ((FILE), (NAME)),		\
67  fprintf ((FILE), ",%u\n", (int)(ROUNDED)))
68
69/* This is how to output an assembler line
70   that says to advance the location counter
71   to a multiple of 2**LOG bytes.  */
72
73#define ASM_OUTPUT_ALIGN(FILE,LOG)	\
74  if ((LOG)!=0) fprintf ((FILE), "\t.align %d\n", (LOG))
75
76/* This is how to store into the string BUF
77   the symbol_ref name of an internal numbered label where
78   PREFIX is the class of label and NUM is the number within the class.
79   This is suitable for output with `assemble_name'.  */
80
81#define ASM_GENERATE_INTERNAL_LABEL(BUF,PREFIX,NUMBER)	\
82    sprintf ((BUF), "*%s%ld", (PREFIX), (long)(NUMBER))
83
84/* The prefix to add to user-visible assembler symbols.  */
85
86#define USER_LABEL_PREFIX "_"
87
88/* Sequent has some changes in the format of DBX symbols.  */
89#define DBX_NO_XREFS 1
90
91/* Don't split DBX symbols into continuations.  */
92#define DBX_CONTIN_LENGTH 0
93