i_symbian.pas 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. {
  2. This file is part of the Free Pascal run time library.
  3. Copyright (c) 2007 by contributors of the Free Pascal Compiler
  4. This unit implements support information structures for symbian os
  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. { This unit implements support information structures for win32. }
  19. unit i_symbian;
  20. {$i fpcdefs.inc}
  21. interface
  22. uses
  23. systems;
  24. const
  25. system_i386_symbian_info : tsysteminfo =
  26. (
  27. system : system_i386_symbian;
  28. name : 'Symbian OS for i386';
  29. shortname : 'Symbian';
  30. flags : [tf_files_case_aware, tf_has_dllscanner,
  31. tf_smartlink_library,tf_use_function_relative_addresses];
  32. cpu : cpu_i386;
  33. unit_env : 'SYMBIANUNITS';
  34. extradefines : 'SYMBIAN';
  35. exeext : '.exe';
  36. defext : '.def';
  37. scriptext : '.bat';
  38. smartext : '.sl';
  39. unitext : '.ppu';
  40. unitlibext : '.ppl';
  41. asmext : '.s';
  42. objext : '.o';
  43. resext : '.res';
  44. resobjext : '.or';
  45. sharedlibext : '.dll';
  46. staticlibext : '.a';
  47. staticlibprefix : 'libp';
  48. sharedlibprefix : '';
  49. sharedClibext : '.dll';
  50. staticClibext : '.a';
  51. staticClibprefix : 'lib';
  52. sharedClibprefix : '';
  53. importlibprefix : 'libimp';
  54. importlibext : '.a';
  55. Cprefix : '_';
  56. newline : #13#10;
  57. dirsep : '\';
  58. assem : as_gas;
  59. assemextern : as_gas;
  60. link : nil;
  61. linkextern : nil;
  62. ar : ar_gnu_ar;
  63. res : res_gnu_windres;
  64. dbg : dbg_stabs;
  65. script : script_dos;
  66. endian : endian_little;
  67. alignment :
  68. (
  69. procalign : 16;
  70. loopalign : 4;
  71. jumpalign : 0;
  72. constalignmin : 0;
  73. constalignmax : 16;
  74. varalignmin : 0;
  75. varalignmax : 16;
  76. localalignmin : 4;
  77. localalignmax : 8;
  78. recordalignmin : 0;
  79. recordalignmax : 4;
  80. maxCrecordalign : 16
  81. );
  82. first_parm_offset : 8;
  83. stacksize : 262144;
  84. abi : abi_default;
  85. );
  86. system_arm_symbian_info : tsysteminfo =
  87. (
  88. system : system_arm_symbian;
  89. name : 'Symbian OS for ARM';
  90. shortname : 'Symbian';
  91. flags : [tf_files_case_aware, tf_has_dllscanner,
  92. tf_use_function_relative_addresses,
  93. tf_requires_proper_alignment,tf_no_pic_supported];
  94. cpu : cpu_arm;
  95. unit_env : 'SYMBIANUNITS';
  96. extradefines : 'SYMBIAN';
  97. exeext : '.exe';
  98. defext : '.def';
  99. scriptext : '.bat';
  100. smartext : '.sl';
  101. unitext : '.ppu';
  102. unitlibext : '.ppl';
  103. asmext : '.s';
  104. objext : '.o';
  105. resext : '.res';
  106. resobjext : '.or';
  107. sharedlibext : '.dll';
  108. staticlibext : '.a';
  109. staticlibprefix : 'libp';
  110. sharedlibprefix : '';
  111. sharedClibext : '.dll';
  112. staticClibext : '.a';
  113. staticClibprefix : 'lib';
  114. sharedClibprefix : '';
  115. importlibprefix : 'libimp';
  116. importlibext : '.a';
  117. Cprefix : '_';
  118. newline : #13#10;
  119. dirsep : '\';
  120. assem : as_gas;
  121. assemextern : as_gas;
  122. link : nil;
  123. linkextern : nil;
  124. ar : ar_gnu_ar;
  125. res : res_none;
  126. dbg : dbg_stabs;
  127. script : script_dos;
  128. endian : endian_little;
  129. alignment :
  130. (
  131. procalign : 4;
  132. loopalign : 4;
  133. jumpalign : 0;
  134. constalignmin : 0;
  135. constalignmax : 4;
  136. varalignmin : 0;
  137. varalignmax : 4;
  138. localalignmin : 0;
  139. localalignmax : 4;
  140. recordalignmin : 0;
  141. recordalignmax : 4;
  142. maxCrecordalign : 4
  143. );
  144. first_parm_offset : 8;
  145. stacksize : 262144;
  146. abi : abi_default;
  147. );
  148. implementation
  149. initialization
  150. {$ifdef CPU86}
  151. {$ifdef Symbian}
  152. set_source_info(system_i386_symbian_info);
  153. {$endif Symbian}
  154. {$endif CPU86}
  155. {$ifdef CPUARM}
  156. {$ifdef Symbian}
  157. set_source_info(system_arm_symbian_info);
  158. {$endif Symbian}
  159. {$endif CPUARM}
  160. end.