i_palmos.pas 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202
  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. mos6502page0alloc : [];
  90. );
  91. res_m68k_palmos_info : tresinfo =
  92. (
  93. id : res_m68k_palmos;
  94. resbin : 'pilrc';
  95. rescmd : '-I $INC $RES';
  96. rcbin : '';
  97. rccmd : '';
  98. resourcefileclass : nil;
  99. resflags : [];
  100. );
  101. system_arm_palmos_info : tsysteminfo =
  102. (
  103. system : system_arm_PalmOS;
  104. name : 'PalmOS';
  105. shortname : 'PalmOS';
  106. flags : [tf_code_small,tf_static_reg_based,tf_smartlink_sections,tf_requires_proper_alignment];
  107. cpu : cpu_arm;
  108. unit_env : 'PALMUNITS';
  109. extradefines : '';
  110. exeext : '';
  111. defext : '.def';
  112. scriptext : '.sh';
  113. smartext : '.sl';
  114. unitext : '.ppu';
  115. unitlibext : '.ppl';
  116. asmext : '.s';
  117. objext : '.o';
  118. resext : '.res';
  119. resobjext : '.or';
  120. sharedlibext : '.so';
  121. staticlibext : '.a';
  122. staticlibprefix : 'libp';
  123. sharedlibprefix : 'lib';
  124. sharedClibext : '.so';
  125. staticClibext : '.a';
  126. staticClibprefix : 'lib';
  127. sharedClibprefix : 'lib';
  128. importlibprefix : 'libimp';
  129. importlibext : '.a';
  130. Cprefix : '_';
  131. newline : #10;
  132. dirsep : '/';
  133. assem : as_gas;
  134. assemextern : as_gas;
  135. link : ld_none;
  136. linkextern : ld_palmos;
  137. ar : ar_gnu_ar;
  138. res : res_none;
  139. dbg : dbg_stabs;
  140. script : script_unix;
  141. endian : endian_big;
  142. alignment :
  143. (
  144. procalign : 4;
  145. loopalign : 4;
  146. jumpalign : 0;
  147. jumpalignskipmax : 0;
  148. coalescealign : 0;
  149. coalescealignskipmax: 0;
  150. constalignmin : 0;
  151. constalignmax : 4;
  152. varalignmin : 0;
  153. varalignmax : 4;
  154. localalignmin : 0;
  155. localalignmax : 4;
  156. recordalignmin : 0;
  157. recordalignmax : 2;
  158. maxCrecordalign : 4
  159. );
  160. first_parm_offset : 8;
  161. stacksize : 8192;
  162. stackalign : 4;
  163. abi : abi_default;
  164. llvmdatalayout : 'todo';
  165. mos6502page0alloc : [];
  166. );
  167. res_arm_palmos_info : tresinfo =
  168. (
  169. id : res_m68k_palmos;
  170. resbin : 'pilrc';
  171. rescmd : '-I $INC $RES';
  172. rcbin : '';
  173. rccmd : '';
  174. resourcefileclass : nil;
  175. resflags : [];
  176. );
  177. implementation
  178. initialization
  179. {$ifdef cpu68}
  180. {$ifdef palmos}
  181. set_source_info(system_m68k_palmos_info);
  182. {$endif palmos}
  183. {$endif cpu68}
  184. {$ifdef cpuarm}
  185. {$ifdef palmos}
  186. set_source_info(system_arm_palmos_info);
  187. {$endif palmos}
  188. {$endif cpuarm}
  189. end.