home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / programming / source / a2.0bemacs-src.lha / Emacs-19.25 / src / m / amiga.h
Encoding:
C/C++ Source or Header  |  1994-08-14  |  4.4 KB  |  133 lines

  1. /* machine description file for GNU Emacs running on
  2.  
  3.    AmigaDOS 2.04, SAS C compiler 6.3
  4.    
  5.    Copyright (C) 1985, 1986 Free Software Foundation, Inc.
  6.  
  7. This file is part of GNU Emacs.
  8.  
  9. GNU Emacs is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY.  No author or distributor
  11. accepts responsibility to anyone for the consequences of using it
  12. or for whether it serves any particular purpose or works at all,
  13. unless he says so in writing.  Refer to the GNU Emacs General Public
  14. License for full details.
  15.  
  16. Everyone is granted permission to copy, modify and redistribute
  17. GNU Emacs, but only under the conditions described in the
  18. GNU Emacs General Public License.   A copy of this license is
  19. supposed to have been given to you along with GNU Emacs so you
  20. can know your rights and responsibilities.  It should be in a
  21. file named COPYING.  Among other things, the copyright notice
  22. and this notice must be preserved on all copies.  */
  23.  
  24.  
  25. /* The following three symbols give information on
  26.  the size of various data types.  */
  27. /* lisp.h doesn't make any concessions for INTBITS = 16 and
  28.    NO_UNION_TYPE (use int as lisp object) defined.  The following is
  29.    assuming that the Manx 32 bit int. math package is faster than
  30.    bitfield implementation, overall.  If you want to use INTBITS = 16,
  31.    you *cannot* define NO_UNION_TYPE.    */
  32.  
  33. #define SHORTBITS 16        /* Number of bits in a short */
  34.  
  35. #define INTBITS 32        /* Number of bits in an int */
  36.  
  37. #define LONGBITS 32        /* Number of bits in a long */
  38.  
  39. #define VALBITS 26        /* Number of bits in an int or pointer offset */
  40.  
  41. #define GCTYPEBITS 5        /* Number of bits in a type. */
  42.  
  43. /* Define BIG_ENDIAN iff lowest-numbered byte in a word
  44.    is the most significant byte.  */
  45.  
  46. #define BIG_ENDIAN
  47.  
  48. /* Define NO_ARG_ARRAY if you cannot take the address of the first of a
  49.  * group of arguments and treat it as an array of the arguments.  */
  50.  
  51. /* #define NO_ARG_ARRAY */
  52.  
  53. /* Define WORD_MACHINE if addresses and such have
  54.  * to be corrected before they can be used as byte counts.  */
  55.  
  56. #define WORD_MACHINE
  57.  
  58. /* Define how to take a char and sign-extend into an int.
  59.    On machines where char is signed, this is a no-op.  */
  60.  
  61. #define SIGN_EXTEND_CHAR(c) (c)
  62.  
  63. /* Now define a symbol for the cpu type, if your compiler
  64.    does not define it automatically:
  65.    Ones defined so far include vax, m68000, ns16000, pyramid,
  66.    orion, tahoe, APOLLO and many others */
  67.  
  68. #ifndef    m68000
  69. #define m68000
  70. #endif
  71.  
  72. /* Use type int rather than a union, to represent Lisp_Object */
  73. /* This is desirable for most machines.  */
  74.  
  75. #define NO_UNION_TYPE
  76. /* Use a struct rather than an int. */
  77.  
  78.  
  79. /* Define EXPLICIT_SIGN_EXTEND if XINT must explicitly sign-extend
  80.    the 24-bit bit field into an int.  In other words, if bit fields
  81.    are always unsigned.
  82.  
  83.    If you use NO_UNION_TYPE, this flag does not matter.  */
  84.  
  85. #define EXPLICIT_SIGN_EXTEND
  86.  
  87. /* We don't have /dev/kmem, so LOAD_AVE_TYPE and LOAD_AVE_CVT are
  88.    not defined. */
  89.  
  90. /* Define CANNOT_DUMP on machines where unexec does not work.
  91.    Then the function dump-emacs will not be defined
  92.    and temacs will do (load "loadup") automatically unless told otherwise.  */
  93.  
  94. /* #define CANNOT_DUMP */
  95.  
  96. /* Define VIRT_ADDR_VARIES if the virtual addresses of
  97.    pure and impure space as loaded can vary, and even their
  98.    relative order cannot be relied on.
  99.  
  100.    Otherwise Emacs assumes that text space precedes data space,
  101.    numerically.  */
  102.  
  103. /* #define VIRT_ADDR_VARIES */
  104. /* I now rely on AMIGA_DUMP to make appropriate patches in the source */
  105.  
  106. /* Define C_ALLOCA if this machine does not support a true alloca
  107.    and the one written in C should be used instead.
  108.    Define HAVE_ALLOCA to say that the system provides a properly
  109.    working alloca function and it should be used.
  110.    Define neither one if an assembler-language alloca
  111.    in the file alloca.s should be used.  */
  112.  
  113. #define C_ALLOCA
  114. /* #define HAVE_ALLOCA */
  115.  
  116. /* Define STACK_DIRECTION for alloca.c */
  117. #define    STACK_DIRECTION    -1    /* Grows downward */
  118.  
  119. /* Define NO_REMAP if memory segmentation makes it not work well
  120.    to change the boundary between the text section and data section
  121.    when Emacs is dumped.  If you define this, the preloaded Lisp
  122.    code will not be sharable; but that's better than failing completely.  */
  123.  
  124. #define NO_REMAP
  125.  
  126. /* Set high (32 - VALBITS) = 6 bits of every pointer to the same as those of
  127.    &pure[0].
  128. */
  129. #ifdef emacs
  130. extern long far DataSegBits;
  131. #endif
  132. #define DATA_SEG_BITS DataSegBits
  133.