bsd.h revision 117395
124139Sjoerg/* Definitions for BSD assembler syntax for Intel 386
2131402Salfred   (actually AT&T syntax for insns and operands,
3131402Salfred   adapted to BSD conventions for symbol names and debugging.)
4131402Salfred   Copyright (C) 1988, 1996, 2000, 2002 Free Software Foundation, Inc.
524139Sjoerg
624139SjoergThis file is part of GNU CC.
724139Sjoerg
824139SjoergGNU CC is free software; you can redistribute it and/or modify
924139Sjoergit under the terms of the GNU General Public License as published by
1024139Sjoergthe Free Software Foundation; either version 2, or (at your option)
1124139Sjoergany later version.
1224139Sjoerg
1324139SjoergGNU CC is distributed in the hope that it will be useful,
14175420Speterbut WITHOUT ANY WARRANTY; without even the implied warranty of
1524139SjoergMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
1624139SjoergGNU General Public License for more details.
17244180Srpaulo
1824139SjoergYou should have received a copy of the GNU General Public License
1924139Sjoergalong with GNU CC; see the file COPYING.  If not, write to
2024139Sjoergthe Free Software Foundation, 59 Temple Place - Suite 330,
2124139SjoergBoston, MA 02111-1307, USA.  */
2224139Sjoerg
2324139Sjoerg/* Use the Sequent Symmetry assembler syntax.  */
2424139Sjoerg
2524139Sjoerg/* Define the syntax of pseudo-ops, labels and comments.  */
2624139Sjoerg
2724139Sjoerg/* Prefix for internally generated assembler labels.  If we aren't using
2824139Sjoerg   underscores, we are using prefix `.'s to identify labels that should
2924139Sjoerg   be ignored, as in `i386/gas.h' --karl@cs.umb.edu  */
3024139Sjoerg
3124139Sjoerg#define LPREFIX "L"
3224139Sjoerg
3324139Sjoerg/* Assembler pseudos to introduce constants of various size.  */
3424139Sjoerg
3524139Sjoerg#define ASM_SHORT "\t.word\t"
3624139Sjoerg#define ASM_LONG "\t.long\t"
3724139Sjoerg#define ASM_QUAD "\t.quad\t"  /* Should not be used for 32bit compilation.  */
3824139Sjoerg
3924139Sjoerg/* Output at beginning of assembler file.
40131402Salfred   ??? I am skeptical of this -- RMS.  */
41131402Salfred
42168710Sstas#define ASM_FILE_START(FILE) \
43168710Sstas  do {	output_file_directive (FILE, main_input_filename);	\
44168710Sstas  } while (0)
45168710Sstas
46168710Sstas/* This was suggested, but it shouldn't be right for DBX output. -- RMS
47131402Salfred   #define ASM_OUTPUT_SOURCE_FILENAME(FILE, NAME) */
48175420Speter
49175420Speter
50/* Define the syntax of labels and symbol definitions/declarations.  */
51
52/* This is how to output an assembler line
53   that says to advance the location counter by SIZE bytes.  */
54
55#define ASM_OUTPUT_SKIP(FILE,SIZE)  \
56  fprintf (FILE, "\t.space %u\n", (SIZE))
57
58/* Define the syntax of labels and symbol definitions/declarations.  */
59
60/* This says how to output an assembler line
61   to define a global common symbol.  */
62
63#define ASM_OUTPUT_COMMON(FILE, NAME, SIZE, ROUNDED)  \
64( fputs (".comm ", (FILE)),			\
65  assemble_name ((FILE), (NAME)),		\
66  fprintf ((FILE), ",%u\n", (ROUNDED)))
67
68/* This says how to output an assembler line
69   to define a local common symbol.  */
70
71#define ASM_OUTPUT_LOCAL(FILE, NAME, SIZE, ROUNDED)  \
72( fputs (".lcomm ", (FILE)),			\
73  assemble_name ((FILE), (NAME)),		\
74  fprintf ((FILE), ",%u\n", (ROUNDED)))
75
76/* This is how to output an assembler line
77   that says to advance the location counter
78   to a multiple of 2**LOG bytes.  */
79
80#define ASM_OUTPUT_ALIGN(FILE,LOG)	\
81  if ((LOG)!=0) fprintf ((FILE), "\t.align %d\n", (LOG))
82
83/* This is how to store into the string BUF
84   the symbol_ref name of an internal numbered label where
85   PREFIX is the class of label and NUM is the number within the class.
86   This is suitable for output with `assemble_name'.  */
87
88#define ASM_GENERATE_INTERNAL_LABEL(BUF,PREFIX,NUMBER)	\
89    sprintf ((BUF), "*%s%ld", (PREFIX), (long)(NUMBER))
90
91/* This is how to output an internal numbered label where
92   PREFIX is the class of label and NUM is the number within the class.  */
93
94#define ASM_OUTPUT_INTERNAL_LABEL(FILE,PREFIX,NUM)	\
95  fprintf (FILE, "%s%d:\n", PREFIX, NUM)
96
97/* The prefix to add to user-visible assembler symbols.  */
98
99#define USER_LABEL_PREFIX "_"
100
101/* Sequent has some changes in the format of DBX symbols.  */
102#define DBX_NO_XREFS 1
103
104/* Don't split DBX symbols into continuations.  */
105#define DBX_CONTIN_LENGTH 0
106