i_palmos.pas 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  1. {
  2. Copyright (c) 1998-2002 by Peter Vreman
  3. This unit implements support information structures for PalmOS
  4. This program is free software; you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation; either version 2 of the License, or
  7. (at your option) any later version.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with this program; if not, write to the Free Software
  14. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  15. ****************************************************************************
  16. }
  17. { This unit implements support information structures for PalmOS. }
  18. unit i_palmos;
  19. {$i fpcdefs.inc}
  20. interface
  21. uses
  22. systems;
  23. const
  24. system_m68k_palmos_info : tsysteminfo =
  25. (
  26. system : system_m68k_PalmOS;
  27. name : 'PalmOS';
  28. shortname : 'PalmOS';
  29. flags : [tf_under_development,tf_code_small,tf_static_reg_based,tf_requires_proper_alignment,
  30. tf_smartlink_library,tf_no_objectfiles_when_smartlinking];
  31. cpu : cpu_m68k;
  32. unit_env : 'PALMUNITS';
  33. extradefines : '';
  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. importlibprefix : 'libimp';
  53. importlibext : '.a';
  54. Cprefix : '_';
  55. newline : #10;
  56. dirsep : '/';
  57. assem : as_m68k_as_aout;
  58. assemextern : as_m68k_as_aout;
  59. link : ld_none;
  60. linkextern : ld_palmos;
  61. ar : ar_gnu_ar;
  62. res : res_none;
  63. dbg : dbg_stabs;
  64. script : script_unix;
  65. endian : endian_big;
  66. alignment :
  67. (
  68. procalign : 4;
  69. loopalign : 4;
  70. jumpalign : 0;
  71. jumpalignskipmax : 0;
  72. coalescealign : 0;
  73. coalescealignskipmax: 0;
  74. constalignmin : 0;
  75. constalignmax : 4;
  76. varalignmin : 0;
  77. varalignmax : 4;
  78. localalignmin : 0;
  79. localalignmax : 4;
  80. recordalignmin : 0;
  81. recordalignmax : 2;
  82. maxCrecordalign : 4
  83. );
  84. first_parm_offset : 8;
  85. stacksize : 8192;
  86. stackalign : 2;
  87. abi : abi_default;
  88. llvmdatalayout : 'todo';
  89. );
  90. res_m68k_palmos_info : tresinfo =
  91. (
  92. id : res_m68k_palmos;
  93. resbin : 'pilrc';
  94. rescmd : '-I $INC $RES';
  95. rcbin : '';
  96. rccmd : '';
  97. resourcefileclass : nil;
  98. resflags : [];
  99. );
  100. system_arm_palmos_info : tsysteminfo =
  101. (
  102. system : system_arm_PalmOS;
  103. name : 'PalmOS';
  104. shortname : 'PalmOS';
  105. flags : [tf_code_small,tf_static_reg_based,tf_smartlink_sections,tf_requires_proper_alignment];
  106. cpu : cpu_arm;
  107. unit_env : 'PALMUNITS';
  108. extradefines : '';
  109. exeext : '';
  110. defext : '.def';
  111. scriptext : '.sh';
  112. smartext : '.sl';
  113. unitext : '.ppu';
  114. unitlibext : '.ppl';
  115. asmext : '.s';
  116. objext : '.o';
  117. resext : '.res';
  118. resobjext : '.or';
  119. sharedlibext : '.so';
  120. staticlibext : '.a';
  121. staticlibprefix : 'libp';
  122. sharedlibprefix : 'lib';
  123. sharedClibext : '.so';
  124. staticClibext : '.a';
  125. staticClibprefix : 'lib';
  126. sharedClibprefix : 'lib';
  127. importlibprefix : 'libimp';
  128. importlibext : '.a';
  129. Cprefix : '_';
  130. newline : #10;
  131. dirsep : '/';
  132. assem : as_gas;
  133. assemextern : as_gas;
  134. link : ld_none;
  135. linkextern : ld_palmos;
  136. ar : ar_gnu_ar;
  137. res : res_none;
  138. dbg : dbg_stabs;
  139. script : script_unix;
  140. endian : endian_big;
  141. alignment :
  142. (
  143. procalign : 4;
  144. loopalign : 4;
  145. jumpalign : 0;
  146. jumpalignskipmax : 0;
  147. coalescealign : 0;
  148. coalescealignskipmax: 0;
  149. constalignmin : 0;
  150. constalignmax : 4;
  151. varalignmin : 0;
  152. varalignmax : 4;
  153. localalignmin : 0;
  154. localalignmax : 4;
  155. recordalignmin : 0;
  156. recordalignmax : 2;
  157. maxCrecordalign : 4
  158. );
  159. first_parm_offset : 8;
  160. stacksize : 8192;
  161. stackalign : 4;
  162. abi : abi_default;
  163. llvmdatalayout : 'todo';
  164. );
  165. res_arm_palmos_info : tresinfo =
  166. (
  167. id : res_m68k_palmos;
  168. resbin : 'pilrc';
  169. rescmd : '-I $INC $RES';
  170. rcbin : '';
  171. rccmd : '';
  172. resourcefileclass : nil;
  173. resflags : [];
  174. );
  175. implementation
  176. initialization
  177. {$ifdef cpu68}
  178. {$ifdef palmos}
  179. set_source_info(system_m68k_palmos_info);
  180. {$endif palmos}
  181. {$endif cpu68}
  182. {$ifdef cpuarm}
  183. {$ifdef palmos}
  184. set_source_info(system_arm_palmos_info);
  185. {$endif palmos}
  186. {$endif cpuarm}
  187. end.