Subversion Repositories Kolibri OS

Rev

Blame | Last modification | View Log | RSS feed

  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-2015 Free Software Foundation, Inc.
  5.  
  6. This file is part of GCC.
  7.  
  8. GCC 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 3, or (at your option)
  11. any later version.
  12.  
  13. GCC 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 GCC; see the file COPYING3.  If not see
  20. <http://www.gnu.org/licenses/>.  */
  21.  
  22. /* Use the Sequent Symmetry assembler syntax.  */
  23. /* Define the syntax of pseudo-ops, labels and comments.  */
  24.  
  25. /* Prefix for internally generated assembler labels.  If we aren't using
  26.    underscores, we are using prefix `.'s to identify labels that should
  27.    be ignored, as in `i386/gas.h' --karl@cs.umb.edu  */
  28.  
  29. #define LPREFIX "L"
  30.  
  31. /* Assembler pseudos to introduce constants of various size.  */
  32.  
  33. #define ASM_BYTE "\t.byte\t"
  34. #define ASM_SHORT "\t.word\t"
  35. #define ASM_LONG "\t.long\t"
  36. #define ASM_QUAD "\t.quad\t"  /* Should not be used for 32bit compilation.  */
  37.  
  38. /* This was suggested, but it shouldn't be right for DBX output. -- RMS
  39.    #define ASM_OUTPUT_SOURCE_FILENAME(FILE, NAME) */
  40.  
  41. /* Define the syntax of labels and symbol definitions/declarations.  */
  42.  
  43. /* This is how to output an assembler line
  44.    that says to advance the location counter by SIZE bytes.  */
  45.  
  46. #define ASM_OUTPUT_SKIP(FILE,SIZE)  \
  47.   fprintf (FILE, "\t.space "HOST_WIDE_INT_PRINT_UNSIGNED"\n", (SIZE))
  48. /* Define the syntax of labels and symbol definitions/declarations.  */
  49.  
  50. /* This says how to output an assembler line
  51.    to define a global common symbol.  */
  52.  
  53. #define ASM_OUTPUT_COMMON(FILE, NAME, SIZE, ROUNDED)  \
  54. ( fputs (".comm ", (FILE)),                     \
  55.   assemble_name ((FILE), (NAME)),               \
  56.   fprintf ((FILE), ",%u\n", (int)(ROUNDED)))
  57.  
  58. /* This says how to output an assembler line
  59.    to define a local common symbol.  */
  60.  
  61. #define ASM_OUTPUT_LOCAL(FILE, NAME, SIZE, ROUNDED)  \
  62. ( fputs (".lcomm ", (FILE)),                    \
  63.   assemble_name ((FILE), (NAME)),               \
  64.   fprintf ((FILE), ",%u\n", (int)(ROUNDED)))
  65.  
  66. #ifdef HAVE_GAS_LCOMM_WITH_ALIGNMENT
  67. #define ASM_OUTPUT_ALIGNED_LOCAL(FILE, NAME, SIZE, ALIGNMENT)  \
  68. ( fputs (".lcomm ", (FILE)),                    \
  69.   assemble_name ((FILE), (NAME)),               \
  70.   fprintf ((FILE), ",%u,%u\n", (int)(SIZE), (int)(ALIGNMENT) / BITS_PER_UNIT))
  71. #endif
  72.  
  73. /* This is how to output an assembler line
  74.    that says to advance the location counter
  75.    to a multiple of 2**LOG bytes.  */
  76.  
  77. #define ASM_OUTPUT_ALIGN(FILE,LOG)      \
  78.   if ((LOG)!=0) fprintf ((FILE), "\t.align %d\n", (LOG))
  79.  
  80. /* This is how to store into the string BUF
  81.    the symbol_ref name of an internal numbered label where
  82.    PREFIX is the class of label and NUM is the number within the class.
  83.    This is suitable for output with `assemble_name'.  */
  84.  
  85. #define ASM_GENERATE_INTERNAL_LABEL(BUF,PREFIX,NUMBER)  \
  86.     sprintf ((BUF), "*%s%ld", (PREFIX), (long)(NUMBER))
  87.  
  88. /* The prefix to add to user-visible assembler symbols.  */
  89.  
  90. #define USER_LABEL_PREFIX "_"
  91.  
  92. /* Sequent has some changes in the format of DBX symbols.  */
  93. #define DBX_NO_XREFS 1
  94.  
  95. /* Don't split DBX symbols into continuations.  */
  96. #define DBX_CONTIN_LENGTH 0
  97.