home *** CD-ROM | disk | FTP | other *** search
/ OpenStep 4.2J (Developer) / os42jdev.iso / NextDeveloper / Source / GNU / emacs / src / m-alliant.h < prev    next >
C/C++ Source or Header  |  1991-01-08  |  5KB  |  145 lines

  1. /* m-alliant.h  Alliant machine running system version 2 or 3.
  2.    Copyright (C) 1985, 1986, 1987 Free Software Foundation, Inc.
  3.    Note that for version 1 of the Alliant system
  4.    you should use m-alliant1.h instead of this file.
  5.    Use m-alliant4.h for version 4.
  6.  
  7. This file is part of GNU Emacs.
  8.  
  9. GNU Emacs is free software; you can redistribute it and/or modify
  10. it under the terms of the GNU General Public License as published by
  11. the Free Software Foundation; either version 1, or (at your option)
  12. any later version.
  13.  
  14. GNU Emacs is distributed in the hope that it will be useful,
  15. but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  17. GNU General Public License for more details.
  18.  
  19. You should have received a copy of the GNU General Public License
  20. along with GNU Emacs; see the file COPYING.  If not, write to
  21. the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
  22.  
  23.  
  24. /* The following three symbols give information on
  25.  the size of various data types.  */
  26.  
  27. #define SHORTBITS 16        /* Number of bits in a short */
  28.  
  29. #define INTBITS 32        /* Number of bits in an int */
  30.  
  31. #define LONGBITS 32        /* Number of bits in a long */
  32.  
  33. /* Define BIG_ENDIAN iff lowest-numbered byte in a word
  34.    is the most significant byte.  */
  35.  
  36. #define BIG_ENDIAN
  37.  
  38. /* Define NO_ARG_ARRAY if you cannot take the address of the first of a
  39.  * group of arguments and treat it as an array of the arguments.  */
  40.  
  41. #ifdef ALLIANT_1
  42. #define NO_ARG_ARRAY
  43. #endif
  44.  
  45. /* Define WORD_MACHINE if addresses and such have
  46.  * to be corrected before they can be used as byte counts.  */
  47.  
  48. #undef WORD_MACHINE
  49.  
  50. /* Define how to take a char and sign-extend into an int.
  51.    On machines where char is signed, this is a no-op.  */
  52.  
  53. #define SIGN_EXTEND_CHAR(c) (c)
  54.  
  55. /* Now define a symbol for the cpu type, if your compiler
  56.    does not define it automatically:
  57.    vax, m68000, ns16000, pyramid, orion, tahoe and APOLLO
  58.    are the ones defined so far.  */
  59.  
  60. #define ALLIANT
  61.  
  62. /* Use type int rather than a union, to represent Lisp_Object */
  63. /* This is desirable for most machines.  */
  64.  
  65. #define NO_UNION_TYPE
  66.  
  67. /* Define EXPLICIT_SIGN_EXTEND if XINT must explicitly sign-extend
  68.    the 24-bit bit field into an int.  In other words, if bit fields
  69.    are always unsigned.
  70.  
  71.    If you use NO_UNION_TYPE, this flag does not matter.  */
  72. /* On Alliants, bitfields are unsigned. */
  73.  
  74. #define EXPLICIT_SIGN_EXTEND
  75.  
  76. /* No load average information available for Alliants. */
  77.  
  78. #undef LOAD_AVE_TYPE
  79. #undef LOAD_AVE_CVT
  80.  
  81. /* Define CANNOT_DUMP on machines where unexec does not work.
  82.    Then the function dump-emacs will not be defined
  83.    and temacs will do (load "loadup") automatically unless told otherwise.  */
  84.  
  85. #undef CANNOT_DUMP
  86.  
  87. /* Define VIRT_ADDR_VARIES if the virtual addresses of
  88.    pure and impure space as loaded can vary, and even their
  89.    relative order cannot be relied on.
  90.  
  91.    Otherwise Emacs assumes that text space precedes data space,
  92.    numerically.  */
  93.  
  94. #undef VIRT_ADDR_VARIES
  95.  
  96. /* Define C_ALLOCA if this machine does not support a true alloca
  97.    and the one written in C should be used instead.
  98.    Define HAVE_ALLOCA to say that the system provides a properly
  99.    working alloca function and it should be used.
  100.    Define neither one if an assembler-language alloca
  101.    in the file alloca.s should be used.  */
  102.  
  103. #undef C_ALLOCA
  104. #define HAVE_ALLOCA
  105.  
  106. #ifdef ALLIANT_1
  107. #define C_ALLOCA
  108. #undef HAVE_ALLOCA
  109. #endif /* ALLIANT_1 */
  110.  
  111. /* Define NO_REMAP if memory segmentation makes it not work well
  112.    to change the boundary between the text section and data section
  113.    when Emacs is dumped.  If you define this, the preloaded Lisp
  114.    code will not be sharable; but that's better than failing completely.  */
  115. /* Actually, Alliant CONCENTRIX does paging "right":
  116.    data pages are copy-on-write, which means that the pure data areas
  117.    are shared automatically and remapping is not necessary.  */
  118.  
  119. #define NO_REMAP
  120.  
  121. /* Alliant needs special crt0.o because system version is not reentrant */
  122.  
  123. #define START_FILES crt0.o
  124.  
  125. /* Alliant dependent code for dumping executing image.
  126.    See crt0.c code for alliant.  */
  127.  
  128. #define ADJUST_EXEC_HEADER {\
  129. extern int _curbrk, _setbrk;\
  130. _setbrk = _curbrk;\
  131. hdr.a_bss_addr = bss_start;\
  132. unexec_text_start = hdr.a_text_addr;}
  133.  
  134. /* cc screws up on long names.  Try making cpp replace them.  */
  135.  
  136. #ifdef ALLIANT_1
  137. #define Finsert_abbrev_table_description Finsert_abbrev_table_descrip
  138. #define internal_with_output_to_temp_buffer internal_with_output_to_tem
  139. #endif
  140.  
  141. /* "vector" is a typedef in /usr/include/machine/reg.h, so its use as
  142.    a variable name causes errors when compiling under ANSI C.  */
  143.  
  144. #define vector xxvector
  145.