home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 2: Applications / Linux Cubed Series 2 - Applications.iso / editors / emacs / xemacs / xemacs-1.004 / xemacs-1 / xemacs-19.13 / src / m / ibmrt.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-07-28  |  3.9 KB  |  129 lines

  1. /* RTPC machine dependent defines 
  2.    Copyright (C) 1986 Free Software Foundation, Inc.
  3.  
  4. This file is part of GNU Emacs.
  5.  
  6. GNU Emacs 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 Emacs 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 Emacs; see the file COPYING.  If not, write to
  18. the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
  19.  
  20. /* Synched up with: FSF 19.29. */
  21.  
  22. /* The following line tells the configuration script what sort of 
  23.    operating system this machine is likely to run.
  24.    USUAL-OPSYS="bsd4-2"  */
  25.  
  26. /* Define WORD_MACHINE if addresses and such have
  27.  * to be corrected before they can be used as byte counts.  */
  28.  
  29. #define WORD_MACHINE
  30.  
  31. /* Now define a symbol for the cpu type, if your compiler
  32.    does not define it automatically.  */
  33.  
  34. /* XEmacs change */
  35. #ifndef ibmrt
  36. #define ibmrt
  37. #endif
  38. #ifndef romp
  39. #define romp /* unfortunately old include files are hanging around.  */
  40. #endif
  41.  
  42. /* Use type int rather than a union, to represent Lisp_Object */
  43. /* This is desirable for most machines.  */
  44.  
  45. #define NO_UNION_TYPE
  46.  
  47. /* Define EXPLICIT_SIGN_EXTEND if XINT must explicitly sign-extend
  48.    the bit field into an int.  In other words, if bit fields
  49.    are always unsigned.
  50.  
  51.    If you use NO_UNION_TYPE, this flag does not matter.  */
  52.  
  53. #define EXPLICIT_SIGN_EXTEND
  54.  
  55. /* Data type of load average, as read out of kmem.  */
  56.  
  57. #define LOAD_AVE_TYPE double    /* For AIS (sysV) */
  58.  
  59. /* Convert that into an integer that is 100 for a load average of 1.0  */
  60.  
  61. #define LOAD_AVE_CVT(x) (int) (((double) (x)) * 100.0)
  62.  
  63. /* Define CANNOT_DUMP on machines where unexec does not work.
  64.    Then the function dump-emacs will not be defined
  65.    and temacs will do (load "loadup") automatically unless told otherwise.  */
  66.  
  67. /* #define CANNOT_DUMP */
  68.  
  69. /* Define VIRT_ADDR_VARIES if the virtual addresses of
  70.    pure and impure space as loaded can vary, and even their
  71.    relative order cannot be relied on.
  72.  
  73.    Otherwise Emacs assumes that text space precedes data space,
  74.    numerically.  */
  75.  
  76. #undef VIRT_ADDR_VARIES
  77.  
  78. /* Define C_ALLOCA if this machine does not support a true alloca
  79.    and the one written in C should be used instead.
  80.    Define HAVE_ALLOCA to say that the system provides a properly
  81.    working alloca function and it should be used.
  82.    Define neither one if an assembler-language alloca
  83.    in the file alloca.s should be used.  */
  84.  
  85. #define HAVE_ALLOCA
  86.  
  87. /* The data segment in this machine starts at a fixed address.
  88.    An address of data cannot be stored correctly in a Lisp object;
  89.    we always lose the high bits.  We must tell XPNTR to add them back.  */
  90.  
  91. #define DATA_SEG_BITS 0x10000000
  92. #define DATA_START    0x10000000
  93.  
  94. /* The text segment always starts at a fixed address.
  95.    This way we don't need to have a label _start defined.  */
  96. #define TEXT_START 0
  97.  
  98. /* Taking a pointer to a char casting it as int pointer */
  99. /* and then taking the int which the int pointer points to */
  100. /* is practically guaranteed to give erroneous results */
  101.  
  102. #define NEED_ERRNO
  103.  
  104. #define SKTPAIR
  105.  
  106. /* Special switches to give the C compiler.  */
  107.  
  108. #ifndef __GNUC__
  109. #define C_SWITCH_MACHINE -Dalloca=_Alloca
  110. #endif
  111.  
  112. /* XEmacs addition: */
  113. /* Under Mach at least, gcc doesn't seem to work as the linker. */
  114. #ifdef MACH
  115. #define START_FILES pre-crt0.o
  116. #ifdef __GNUC__
  117. #define LINKER pcc
  118. #endif
  119. #endif
  120.  
  121. /* Don't attempt to relabel some of the data as text when dumping.
  122.    It does not work because their virtual addresses are not consecutive.
  123.    This enables us to use the standard crt0.o.  */
  124.  
  125. #define NO_REMAP
  126.  
  127. /* Use the bitmap files that come with Emacs.  */
  128. #define EMACS_BITMAP_FILES
  129.