i_nativent.pas 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. {
  2. Copyright (c) 2009 by Sven Barth
  3. This unit implements support information structures for nativent
  4. Based on Peter Vreman's i_win
  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 nativent. }
  19. unit i_nativent;
  20. {$i fpcdefs.inc}
  21. interface
  22. uses
  23. systems;
  24. const
  25. system_i386_nativent_info : tsysteminfo =
  26. (
  27. system : system_i386_NATIVENT;
  28. name : 'Native NT for i386';
  29. shortname : 'NativeNT';
  30. flags : [tf_files_case_aware,tf_use_function_relative_addresses
  31. ,tf_smartlink_sections{,tf_section_threadvars}{,tf_needs_dwarf_cfi},
  32. tf_no_pic_supported,
  33. tf_no_generic_stackcheck{,tf_has_winlike_resources},tf_under_development,
  34. tf_dwarf_only_local_labels];
  35. cpu : cpu_i386;
  36. unit_env : 'NTUNITS';
  37. extradefines : 'NATIVENT;FPC_OS_UNICODE';
  38. exeext : '.exe';
  39. defext : '.def';
  40. scriptext : '.bat';
  41. smartext : '.sl';
  42. unitext : '.ppu';
  43. unitlibext : '.ppl';
  44. asmext : '.s';
  45. objext : '.o';
  46. resext : '.res';
  47. resobjext : '.or';
  48. sharedlibext : '.dll';
  49. staticlibext : '.a';
  50. staticlibprefix : 'libp';
  51. sharedlibprefix : '';
  52. sharedClibext : '.dll';
  53. staticClibext : '.a';
  54. staticClibprefix : 'lib';
  55. sharedClibprefix : '';
  56. importlibprefix : 'libimp';
  57. importlibext : '.a';
  58. Cprefix : '_';
  59. newline : #13#10;
  60. dirsep : '\';
  61. assem : as_i386_pecoff;
  62. assemextern : as_gas;
  63. link : ld_int_nativent;
  64. linkextern : ld_none;
  65. ar : ar_gnu_ar;
  66. res : res_gnu_windres;
  67. dbg : dbg_stabs;
  68. script : script_dos;
  69. endian : endian_little;
  70. alignment :
  71. (
  72. procalign : 16;
  73. loopalign : 4;
  74. jumpalign : 0;
  75. jumpalignskipmax : 0;
  76. coalescealign : 0;
  77. coalescealignskipmax: 0;
  78. constalignmin : 0;
  79. constalignmax : 16;
  80. varalignmin : 0;
  81. varalignmax : 16;
  82. localalignmin : 4;
  83. localalignmax : 8;
  84. recordalignmin : 0;
  85. recordalignmax : 4;
  86. maxCrecordalign : 16
  87. );
  88. first_parm_offset : 8;
  89. stacksize : 16*1024*1024;
  90. stackalign : 4;
  91. abi : abi_default;
  92. llvmdatalayout : 'e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-f80:128:128-v64:64:64-v128:128:128-a0:0:64-f80:32:32-n8:16:32-S32';
  93. );
  94. implementation
  95. initialization
  96. {$ifdef CPUI386}
  97. {$ifdef NATIVENT}
  98. set_source_info(system_i386_nativent_info);
  99. {$endif NATIVENT}
  100. {$endif CPUI386}
  101. end.