i_jvm.pas 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  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 : nil;
  75. linkextern : nil;
  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. abi : abi_default;
  99. );
  100. system_jvm_android32_info : tsysteminfo =
  101. (
  102. system : system_jvm_android32;
  103. name : 'Android via JVM';
  104. shortname : 'android';
  105. flags : [tf_files_case_sensitive,tf_no_generic_stackcheck,
  106. { avoid the creation of threadvar tables }
  107. tf_section_threadvars];
  108. cpu : cpu_jvm;
  109. unit_env : '';
  110. extradefines : '';
  111. exeext : '';
  112. defext : '.def';
  113. scriptext : '.sh';
  114. smartext : '.sl';
  115. unitext : '.ppu';
  116. unitlibext : '.ppl';
  117. asmext : '.j';
  118. objext : '.class';
  119. resext : '';
  120. resobjext : '.jar';
  121. sharedlibext : '.jar';
  122. staticlibext : '.jar';
  123. staticlibprefix : '';
  124. sharedlibprefix : '';
  125. sharedClibext : '.jar';
  126. staticClibext : '.jar';
  127. staticClibprefix : '';
  128. sharedClibprefix : '';
  129. importlibprefix : '';
  130. importlibext : '.jar';
  131. Cprefix : '';
  132. newline : #10;
  133. dirsep : '/';
  134. assem : as_jvm_jasmin;
  135. assemextern : as_jvm_jasmin;
  136. link : nil;
  137. linkextern : nil;
  138. ar : ar_none;
  139. res : res_jvm_raw;
  140. dbg : dbg_jasmin;
  141. script : script_unix;
  142. endian : endian_big;
  143. alignment :
  144. (
  145. procalign : 4;
  146. loopalign : 4;
  147. jumpalign : 0;
  148. constalignmin : 0;
  149. constalignmax : 4;
  150. varalignmin : 4;
  151. varalignmax : 4;
  152. localalignmin : 4;
  153. localalignmax : 4;
  154. recordalignmin : 0;
  155. recordalignmax : 2;
  156. maxCrecordalign : 4
  157. );
  158. first_parm_offset : 0;
  159. stacksize : 262144;
  160. abi : abi_default;
  161. );
  162. implementation
  163. end.