2
0

i_jvm.pas 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. {
  2. Copyright (c) 2010 by Jonas Maebe
  3. This unit implements support information structures for FreeBSD/NetBSD,
  4. OpenBSD and Darwin (Mac OS X)
  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. unit i_jvm;
  19. {$i fpcdefs.inc}
  20. interface
  21. uses
  22. systems,rescmn;
  23. const
  24. res_jvmraw_info : tresinfo =
  25. (
  26. id : res_jvm_raw;
  27. resbin : 'fpcjres';
  28. rescmd : '-o $OBJ $DBG';
  29. rcbin : '';
  30. rccmd : '';
  31. resourcefileclass : nil;
  32. resflags : [res_no_compile];
  33. );
  34. { The 32 only means that code written for this target behaves
  35. semantically as if it were written for a 32 bit target (default
  36. integer evaluation width = 32 bit). It will work equally well on 32
  37. bit and 64 bit JVM implementations. }
  38. system_jvm_java32_info : tsysteminfo =
  39. (
  40. system : system_jvm_java32;
  41. name : 'Java Virtual Machine';
  42. shortname : 'Java';
  43. flags : [tf_files_case_sensitive,tf_no_generic_stackcheck,
  44. { avoid the creation of threadvar tables }
  45. tf_section_threadvars];
  46. cpu : cpu_jvm;
  47. unit_env : '';
  48. extradefines : '';
  49. exeext : '';
  50. defext : '.def';
  51. scriptext : '.sh';
  52. smartext : '.sl';
  53. unitext : '.ppu';
  54. unitlibext : '.ppl';
  55. asmext : '.j';
  56. objext : '.class';
  57. resext : '';
  58. resobjext : '.jar';
  59. sharedlibext : '.jar';
  60. staticlibext : '.jar';
  61. staticlibprefix : '';
  62. sharedlibprefix : '';
  63. sharedClibext : '.jar';
  64. staticClibext : '.jar';
  65. staticClibprefix : '';
  66. sharedClibprefix : '';
  67. importlibprefix : '';
  68. importlibext : '.jar';
  69. Cprefix : '';
  70. newline : #10;
  71. dirsep : '/';
  72. assem : as_jvm_jasmin;
  73. assemextern : as_jvm_jasmin;
  74. link : ld_none;
  75. linkextern : ld_jvm;
  76. ar : ar_none;
  77. res : res_jvm_raw;
  78. dbg : dbg_jasmin;
  79. script : script_unix;
  80. endian : endian_big;
  81. alignment :
  82. (
  83. procalign : 4;
  84. loopalign : 4;
  85. jumpalign : 0;
  86. constalignmin : 0;
  87. constalignmax : 4;
  88. varalignmin : 4;
  89. varalignmax : 4;
  90. localalignmin : 4;
  91. localalignmax : 4;
  92. recordalignmin : 0;
  93. recordalignmax : 2;
  94. maxCrecordalign : 4
  95. );
  96. first_parm_offset : 0;
  97. stacksize : 262144;
  98. stackalign : 4;
  99. abi : abi_default;
  100. llvmdatalayout : 'todo';
  101. );
  102. system_jvm_android32_info : tsysteminfo =
  103. (
  104. system : system_jvm_android32;
  105. name : 'Android via JVM';
  106. shortname : 'android';
  107. flags : [tf_files_case_sensitive,tf_no_generic_stackcheck,
  108. { avoid the creation of threadvar tables }
  109. tf_section_threadvars];
  110. cpu : cpu_jvm;
  111. unit_env : '';
  112. extradefines : '';
  113. exeext : '';
  114. defext : '.def';
  115. scriptext : '.sh';
  116. smartext : '.sl';
  117. unitext : '.ppu';
  118. unitlibext : '.ppl';
  119. asmext : '.j';
  120. objext : '.class';
  121. resext : '';
  122. resobjext : '.jar';
  123. sharedlibext : '.jar';
  124. staticlibext : '.jar';
  125. staticlibprefix : '';
  126. sharedlibprefix : '';
  127. sharedClibext : '.jar';
  128. staticClibext : '.jar';
  129. staticClibprefix : '';
  130. sharedClibprefix : '';
  131. importlibprefix : '';
  132. importlibext : '.jar';
  133. Cprefix : '';
  134. newline : #10;
  135. dirsep : '/';
  136. assem : as_jvm_jasmin;
  137. assemextern : as_jvm_jasmin;
  138. link : ld_none;
  139. linkextern : ld_jvm;
  140. ar : ar_none;
  141. res : res_jvm_raw;
  142. dbg : dbg_jasmin;
  143. script : script_unix;
  144. endian : endian_big;
  145. alignment :
  146. (
  147. procalign : 4;
  148. loopalign : 4;
  149. jumpalign : 0;
  150. constalignmin : 0;
  151. constalignmax : 4;
  152. varalignmin : 4;
  153. varalignmax : 4;
  154. localalignmin : 4;
  155. localalignmax : 4;
  156. recordalignmin : 0;
  157. recordalignmax : 2;
  158. maxCrecordalign : 4
  159. );
  160. first_parm_offset : 0;
  161. stacksize : 262144;
  162. stackalign : 4;
  163. abi : abi_default;
  164. llvmdatalayout : 'todo';
  165. );
  166. implementation
  167. end.