i_palmos.pas 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  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. interface
  20. uses
  21. systems;
  22. const
  23. system_m68k_palmos_info : tsysteminfo =
  24. (
  25. system : system_m68k_PalmOS;
  26. name : 'PalmOS';
  27. shortname : 'PalmOS';
  28. flags : [tf_code_small,tf_static_a5_based];
  29. cpu : cpu_m68k;
  30. short_name : 'PALMOS';
  31. unit_env : 'PALMUNITS';
  32. extradefines : '';
  33. sharedlibext : '.so';
  34. staticlibext : '.a';
  35. exeext : '';
  36. defext : '';
  37. scriptext : '.sh';
  38. smartext : '.sl';
  39. unitext : '.ppu';
  40. unitlibext : '.ppl';
  41. asmext : '.s';
  42. objext : '.o';
  43. resext : '.res';
  44. resobjext : '.or';
  45. staticlibprefix : 'libp';
  46. sharedlibprefix : 'lib';
  47. p_ext_support : false;
  48. Cprefix : '_';
  49. newline : #10;
  50. dirsep : '/';
  51. files_case_relevent : true;
  52. assem : as_gas;
  53. assemextern : as_gas;
  54. link : ld_m68k_palmos;
  55. linkextern : ld_m68k_palmos;
  56. ar : ar_m68k_ar;
  57. res : res_none;
  58. script : script_unix;
  59. endian : endian_big;
  60. stackalignment : 2;
  61. maxCrecordalignment : 4;
  62. stacksize : 8192;
  63. DllScanSupported:false;
  64. use_function_relative_addresses : false
  65. );
  66. res_m68k_palmos_info : tresinfo =
  67. (
  68. id : res_m68k_palmos;
  69. resbin : 'pilrc';
  70. rescmd : '-I $INC $RES'
  71. );
  72. system_arm_palmos_info : tsysteminfo =
  73. (
  74. system : system_arm_PalmOS;
  75. name : 'PalmOS';
  76. shortname : 'PalmOS';
  77. flags : [tf_code_small,tf_static_reg_based,tf_smartlink_sections];
  78. cpu : cpu_arm;
  79. unit_env : 'PALMUNITS';
  80. extradefines : '';
  81. exeext : '';
  82. defext : '.def';
  83. scriptext : '.sh';
  84. smartext : '.sl';
  85. unitext : '.ppu';
  86. unitlibext : '.ppl';
  87. asmext : '.s';
  88. objext : '.o';
  89. resext : '.res';
  90. resobjext : '.or';
  91. sharedlibext : '.so';
  92. staticlibext : '.a';
  93. staticlibprefix : 'libp';
  94. sharedlibprefix : 'lib';
  95. sharedClibext : '.so';
  96. staticClibext : '.a';
  97. staticClibprefix : 'lib';
  98. sharedClibprefix : 'lib';
  99. Cprefix : '_';
  100. newline : #10;
  101. dirsep : '/';
  102. assem : as_gas;
  103. assemextern : as_gas;
  104. link : nil;
  105. linkextern : nil;
  106. ar : ar_gnu_ar;
  107. res : res_none;
  108. dbg : dbg_stabs;
  109. script : script_unix;
  110. endian : endian_big;
  111. alignment :
  112. (
  113. procalign : 4;
  114. loopalign : 4;
  115. jumpalign : 0;
  116. constalignmin : 0;
  117. constalignmax : 4;
  118. varalignmin : 0;
  119. varalignmax : 4;
  120. localalignmin : 0;
  121. localalignmax : 4;
  122. recordalignmin : 0;
  123. recordalignmax : 2;
  124. maxCrecordalign : 4
  125. );
  126. first_parm_offset : 8;
  127. stacksize : 8192;
  128. abi : abi_default;
  129. );
  130. res_arm_palmos_info : tresinfo =
  131. (
  132. id : res_m68k_palmos;
  133. resbin : 'pilrc';
  134. rescmd : '-I $INC $RES'
  135. );
  136. implementation
  137. initialization
  138. {$ifdef cpu68}
  139. {$ifdef palmos}
  140. set_source_info(system_m68k_palmos_info);
  141. {$endif palmos}
  142. {$endif cpu68}
  143. {$ifdef cpuarm}
  144. {$ifdef palmos}
  145. set_source_info(system_arm_palmos_info);
  146. {$endif palmos}
  147. {$endif cpuarm}
  148. end.