home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / gcc-2.7.2.1-base.tgz / gcc-2.7.2.1-base.tar / fsf / gcc / config / vax / vaxv.h < prev    next >
C/C++ Source or Header  |  1995-06-15  |  2KB  |  73 lines

  1. /* Definitions of target machine for GNU compiler.  Vax sysV version.
  2.    Copyright (C) 1988, 1993 Free Software Foundation, Inc.
  3.  
  4. This file is part of GNU CC.
  5.  
  6. GNU CC is free software; you can redistribute it and/or modify
  7. it under the terms of the GNU General Public License as published by
  8. the Free Software Foundation; either version 2, or (at your option)
  9. any later version.
  10.  
  11. GNU CC is distributed in the hope that it will be useful,
  12. but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14. GNU General Public License for more details.
  15.  
  16. You should have received a copy of the GNU General Public License
  17. along with GNU CC; see the file COPYING.  If not, write to
  18. the Free Software Foundation, 59 Temple Place - Suite 330,
  19. Boston, MA 02111-1307, USA.  */
  20.  
  21. #include "vax/vax.h"
  22.  
  23. /* Cope with these under SysV */
  24.  
  25. #define SCCS_DIRECTIVE
  26.  
  27. #undef CPP_PREDEFINES
  28. #define CPP_PREDEFINES "-Dvax -Dunix -Asystem(unix) -Asystem(svr3) -Acpu(vax) -Amachine(vax)"
  29.  
  30. /* Output #ident as a .ident.  */
  31.  
  32. #define ASM_OUTPUT_IDENT(FILE, NAME) fprintf (FILE, "\t.ident \"%s\"\n", NAME);
  33.  
  34. #undef DBX_DEBUGGING_INFO
  35. #define SDB_DEBUGGING_INFO
  36.  
  37. #undef LIB_SPEC
  38.  
  39. /* The .file command should always begin the output.  */
  40. #undef ASM_FILE_START
  41. #define ASM_FILE_START(FILE) \
  42. output_file_directive ((FILE), main_input_filename)
  43.  
  44. #undef ASM_OUTPUT_ALIGN
  45. #define ASM_OUTPUT_ALIGN(FILE,LOG) \
  46.   fprintf(FILE, "\t.align %d\n", 1 << (LOG))
  47.  
  48. #undef ASM_OUTPUT_LOCAL
  49. #define ASM_OUTPUT_LOCAL(FILE,NAME,SIZE,ROUNDED)    \
  50. ( data_section (),                    \
  51.   assemble_name ((FILE), (NAME)),            \
  52.   fprintf ((FILE), ":\n\t.space %u\n", (ROUNDED)))
  53.  
  54. #define ASM_OUTPUT_ASCII(FILE,PTR,LEN)            \
  55. do {                            \
  56.   unsigned char *s;                    \
  57.   int i;                        \
  58.   for (i = 0, s = (PTR); i < (LEN); s++, i++)        \
  59.     {                            \
  60.       if ((i % 8) == 0)                    \
  61.     fputs ("\n\t.byte\t", (FILE));            \
  62.       fprintf ((FILE), "%s0x%x", (i%8?",":""), (unsigned)*s); \
  63.     }                            \
  64.   fputs ("\n", (FILE));                    \
  65. } while (0)
  66.  
  67. #undef ASM_OUTPUT_DOUBLE
  68. #define ASM_OUTPUT_DOUBLE(FILE,VALUE)            \
  69. do { char dstr[30];                    \
  70.      REAL_VALUE_TO_DECIMAL (VALUE, "%.20e", dstr);    \
  71.      fprintf (FILE, "\t.double 0d%s\n", dstr);        \
  72.    } while (0)
  73.