i_haiku.pas 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. {
  2. Copyright (c) 1998-2002 by Peter Vreman
  3. Copyright (c) 2008-2008 by Olivier Coursière
  4. This unit implements support information structures for Haiku
  5. This program is free software; you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation; either version 2 of the License, or
  8. (at your option) any later version.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with this program; if not, write to the Free Software
  15. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  16. ****************************************************************************
  17. }
  18. { This unit implements support information structures for Haiku. }
  19. unit i_haiku;
  20. interface
  21. uses
  22. systems;
  23. const
  24. system_i386_haiku_info : tsysteminfo =
  25. (
  26. system : system_i386_Haiku;
  27. name : 'Haiku for i386';
  28. shortname : 'Haiku';
  29. flags : [tf_under_development,tf_needs_symbol_size,tf_files_case_sensitive,tf_use_function_relative_addresses,
  30. tf_smartlink_sections, tf_smartlink_library];
  31. cpu : cpu_i386;
  32. unit_env : 'HAIKUUNITS';
  33. extradefines : 'BEOS;UNIX;HASUNIX';
  34. exeext : '';
  35. defext : '.def';
  36. scriptext : '.sh';
  37. smartext : '.sl';
  38. unitext : '.ppu';
  39. unitlibext : '.ppl';
  40. asmext : '.s';
  41. objext : '.o';
  42. resext : '.res';
  43. resobjext : '.or';
  44. sharedlibext : '.so';
  45. staticlibext : '.a';
  46. staticlibprefix : 'libp';
  47. sharedlibprefix : 'lib';
  48. sharedClibext : '.so';
  49. staticClibext : '.a';
  50. staticClibprefix : 'lib';
  51. sharedClibprefix : 'lib';
  52. Cprefix : '';
  53. newline : #10;
  54. dirsep : '/';
  55. assem : as_i386_elf32;
  56. assemextern : as_gas;
  57. link : nil;
  58. linkextern : nil;
  59. ar : ar_gnu_ar;
  60. res : res_none;
  61. dbg : dbg_stabs;
  62. script : script_unix;
  63. endian : endian_little;
  64. alignment :
  65. (
  66. procalign : 4;
  67. loopalign : 4;
  68. jumpalign : 0;
  69. constalignmin : 0;
  70. constalignmax : 4;
  71. varalignmin : 0;
  72. varalignmax : 4;
  73. localalignmin : 0;
  74. localalignmax : 4;
  75. recordalignmin : 0;
  76. recordalignmax : 2;
  77. maxCrecordalign : 4
  78. );
  79. first_parm_offset : 8;
  80. { Stack size used to be 256 K under BeOS. So, it was the value
  81. used in previous version of FPC for BeOS (but lost in the road
  82. to 2.* ;-).
  83. According to buildtools/gcc/gcc/config/i386/beos-elf.h in the
  84. Haiku's repository, this value was increased to 1Mb since r4.1b3.
  85. Under R5, this value is even greater. listarea report a default
  86. size of 16 Mb for the user stack of the main thread.
  87. People who still use BeOS nowadays should use R5 (or Haiku),
  88. so i use this new value.
  89. }
  90. stacksize : 16 * 1024 * 1024;
  91. abi : abi_default
  92. );
  93. implementation
  94. initialization
  95. {$ifdef cpu86}
  96. {$ifdef haiku}
  97. set_source_info(system_i386_haiku_info);
  98. {$endif haiku}
  99. {$endif cpu86}
  100. end.