home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / plbin.zip / pl / src / md-hp.h < prev    next >
C/C++ Source or Header  |  1993-02-23  |  3KB  |  93 lines

  1. /*  md-hp.h,v 1.7 1993/02/23 13:16:22 jan Exp
  2.  
  3.     Copyright (c) 1990 Jan Wielemaker. All rights reserved.
  4.     See ../LICENCE to find out about your rights.
  5.     jan@swi.psy.uva.nl
  6.  
  7.     Purpose: Machine description for HP9000, HPUX 8.0
  8. */
  9.  
  10. /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  11. This md- file  is for the  HP9000 series running  HP-UX.  The  initial
  12. HP-port was  made by Jan Wielemaker  for the HP9000s300  running HP-UX
  13. 6.5.
  14.  
  15. Version  1.6 has been ported to  a HP9000s300 running  HP-UX 8.0 by T.
  16. Kielman, June 1992 (kielmann@iti.informatik.th-darmstadt.de)
  17.  
  18. The current definition of this file is again from  Jan Wielemaker.  It
  19. was  made on a HP9000s700 machine   running HP-UX, December 1992.  The
  20. integrated version of SWI-Prolog is 1.6.7.  This port included:
  21.     
  22.     * Fixing various type-clashes
  23.     * Support for process-data-area starting at 0x40000000L
  24.       (O_DATA_AT_0X4)
  25.     * Debugged support for upwards growing C-stack in pl-save.c
  26.     * Various small modifications in pl-save.c to reduce system
  27.       dependencies.  Probably benificial for other systems too.
  28.  
  29. It is unclear whether  or  not the  current   version compiles on  the
  30. HP9000s300 series.
  31.  
  32. I would like to  thank Olle Ollson  at SICS (Sweden) for providing  me
  33. with access to their HP machines.
  34.  
  35. Version 1.6.11 includes   various fixes suggested  by Dave   Sherratt,
  36. (ads@compsci.liverpool.ac.uk)
  37. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  38.  
  39. #ifndef __GNUC__
  40. #define __GNUC__        0    /* set to 1 to use gcc */
  41. #endif
  42.  
  43. #if __GNUC__                /* Use GNU-C */
  44. #define M_CC            gcc
  45. #define M_OPTIMIZE            -O2
  46. #define M_LDFLAGS        -static
  47. #define M_CFLAGS        
  48. #else                    /* Use HP-UX cc */
  49. #define M_CC            cc
  50. #define M_OPTIMIZE            +O3
  51. #define M_LDFLAGS        -O -Wl,-a archive
  52. #define M_CFLAGS        -Aa -D_HPUX_SOURCE -Dunix -Dhpux
  53. #endif
  54.  
  55. #define M_LIBS            -lm -ltermcap
  56.  
  57. /*#define M_OPTIMIZE            -g -DO_DEBUG*/
  58.  
  59. #define O_NO_ALLOCA        !__GNUC__
  60. #define ANSI            __GNUC__
  61. #define O_NO_LEFT_CAST        !__GNUC__
  62. #define O_NO_VOID_POINTER    0
  63. #define O_SHORT_SYMBOLS        0
  64.             /* Operating system */
  65. #define O_PROFILE        1
  66. #define O_SIG_AUTO_RESET    1
  67. #define O_SHARED_MEMORY        0
  68. #define O_CAN_MAP        0
  69. #define O_NO_SEGV_ADDRESS    0
  70. #define MAX_VIRTUAL_ADDRESS    (220 * 1024 *1024)
  71. #ifdef __hp9000s300
  72. #define O_FOREIGN        1    /* I hope ... */
  73. #else
  74. #define O_DATA_AT_0X4        1
  75. #define FIRST_DATA_SYMBOL    __data_start
  76. #define O_C_STACK_GROWS_UP    1
  77. #define STACK_BASE_ALIGN    1    /* i.e. do not align */
  78. #define O_FOREIGN        0
  79. #endif
  80. #define O_SAVE            1
  81. #define DEFAULT_PATH        ":/usr/ucb:/bin:/usr/bin:/usr/local:.:";
  82.             /* terminal driver */
  83. #define O_TERMIOS         1
  84. #define O_EXTEND_ATOMS         1
  85. #define O_LINE_EDIT         1
  86. #define O_MAP_TAB_ON_ESC    1
  87. #define O_FOLD             0
  88.             /* Interfaces */
  89. #define O_PCE             0
  90.  
  91. #define MACHINE            "hp"
  92. #define OPERATING_SYSTEM    "hpux"
  93.