Annotation of gcc/config/bsd386.h, revision 1.1

1.1     ! root        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 Free Software Foundation, Inc.
        !             5: 
        !             6: This file is part of GNU CC.
        !             7: 
        !             8: GNU CC is free software; you can redistribute it and/or modify
        !             9: it under the terms of the GNU General Public License as published by
        !            10: the Free Software Foundation; either version 2, or (at your option)
        !            11: any later version.
        !            12: 
        !            13: GNU CC is distributed in the hope that it will be useful,
        !            14: but WITHOUT ANY WARRANTY; without even the implied warranty of
        !            15: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
        !            16: GNU General Public License for more details.
        !            17: 
        !            18: You should have received a copy of the GNU General Public License
        !            19: along with GNU CC; see the file COPYING.  If not, write to
        !            20: the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
        !            21: 
        !            22: /* Include common aspects of all 386 Unix assemblers.  */
        !            23: #include "unx386.h"
        !            24: 
        !            25: /* Use the Sequent Symmetry assembler syntax.  */
        !            26: 
        !            27: #define TARGET_VERSION fprintf (stderr, " (80386, BSD syntax)");
        !            28: 
        !            29: /* Define the syntax of pseudo-ops, labels and comments.  */
        !            30: 
        !            31: /* Prefix for internally generated assembler labels.  */
        !            32: #define LPREFIX "L"
        !            33: 
        !            34: /* Assembler pseudos to introduce constants of various size.  */
        !            35: 
        !            36: #define ASM_BYTE_OP "\t.byte"
        !            37: #define ASM_SHORT "\t.word"
        !            38: #define ASM_LONG "\t.long"
        !            39: #define ASM_DOUBLE "\t.double"
        !            40: 
        !            41: /* Output at beginning of assembler file.
        !            42:    ??? I am skeptical of this -- RMS.  */
        !            43: 
        !            44: #define ASM_FILE_START(FILE) \
        !            45:   fprintf (FILE, "\t.file\t\"%s\"\n", dump_base_name);
        !            46: 
        !            47: /* This was suggested, but it shouldn't be right for DBX output. -- RMS
        !            48:    #define ASM_OUTPUT_SOURCE_FILENAME(FILE, NAME) */
        !            49: 
        !            50: 
        !            51: /* Define the syntax of labels and symbol definitions/declarations.  */
        !            52: 
        !            53: /* This is how to output an assembler line
        !            54:    that says to advance the location counter by SIZE bytes.  */
        !            55: 
        !            56: #define ASM_OUTPUT_SKIP(FILE,SIZE)  \
        !            57:   fprintf (FILE, "\t.space %u\n", (SIZE))
        !            58: 
        !            59: /* Define the syntax of labels and symbol definitions/declarations.  */
        !            60: 
        !            61: /* This says how to output an assembler line
        !            62:    to define a global common symbol.  */
        !            63: 
        !            64: #define ASM_OUTPUT_COMMON(FILE, NAME, SIZE, ROUNDED)  \
        !            65: ( fputs (".comm ", (FILE)),                    \
        !            66:   assemble_name ((FILE), (NAME)),              \
        !            67:   fprintf ((FILE), ",%u\n", (ROUNDED)))
        !            68: 
        !            69: /* This says how to output an assembler line
        !            70:    to define a local common symbol.  */
        !            71: 
        !            72: #define ASM_OUTPUT_LOCAL(FILE, NAME, SIZE, ROUNDED)  \
        !            73: ( fputs (".lcomm ", (FILE)),                   \
        !            74:   assemble_name ((FILE), (NAME)),              \
        !            75:   fprintf ((FILE), ",%u\n", (ROUNDED)))
        !            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%d", (PREFIX), (NUMBER))
        !            91: 
        !            92: /* This is how to output an internal numbered label where
        !            93:    PREFIX is the class of label and NUM is the number within the class.  */
        !            94: 
        !            95: #define ASM_OUTPUT_INTERNAL_LABEL(FILE,PREFIX,NUM)     \
        !            96:   fprintf (FILE, "%s%d:\n", PREFIX, NUM)
        !            97: 
        !            98: /* This is how to output a reference to a user-level label named NAME.  */
        !            99: 
        !           100: #define ASM_OUTPUT_LABELREF(FILE,NAME) \
        !           101:   fprintf (FILE, "_%s", NAME)
        !           102: 
        !           103: /* Sequent has some changes in the format of DBX symbols.  */
        !           104: #define DBX_NO_XREFS 1
        !           105: 
        !           106: /* Don't split DBX symbols into continuations.  */
        !           107: #define DBX_CONTIN_LENGTH 0
        !           108: 
        !           109: /* This is how to output an assembler line defining a `double' constant.  */
        !           110: 
        !           111: #undef ASM_OUTPUT_DOUBLE
        !           112: #define ASM_OUTPUT_DOUBLE(FILE,VALUE)  \
        !           113:   fprintf (FILE, "\t.double 0d%.20e\n", (VALUE))

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.