i_macos.pas 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. {
  2. $Id$
  3. Copyright (c) 1998-2002 by Peter Vreman
  4. This unit implements support information structures for MacOS
  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 MacOS. }
  19. unit i_macos;
  20. interface
  21. uses
  22. systems;
  23. const
  24. system_powerpc_macos_info : tsysteminfo =
  25. (
  26. system : system_powerpc_MACOS;
  27. name : 'MacOS (PowerPC)';
  28. shortname : 'MacOS';
  29. flags : [];
  30. cpu : cpu_powerpc;
  31. unit_env : '';
  32. extradefines : '';
  33. sourceext : '.pp';
  34. pasext : '.pas'; //is normally .p on MacOS, but then the compiler doesnt compile.
  35. exeext : '';
  36. defext : '';
  37. scriptext : '';
  38. smartext : '.sl';
  39. unitext : '.ppu';
  40. unitlibext : '.ppl';
  41. asmext : '.s';
  42. objext : '.o';
  43. resext : '.res';
  44. resobjext : '.or';
  45. sharedlibext : 'Lib';
  46. staticlibext : 'Lib';
  47. staticlibprefix : '';
  48. sharedlibprefix : '';
  49. sharedClibext : 'Lib';
  50. staticClibext : 'Lib';
  51. staticClibprefix : '';
  52. sharedClibprefix : '';
  53. Cprefix : '';
  54. newline : #13;
  55. dirsep : ':';
  56. files_case_relevent : false;
  57. assem : as_powerpc_mpw;
  58. assemextern : as_powerpc_mpw;
  59. link : nil;
  60. linkextern : nil;
  61. ar : ar_mpw_ar;
  62. res : res_powerpc_mpw;
  63. script : script_unix;
  64. endian : endian_big;
  65. alignment :
  66. (
  67. procalign : 4;
  68. loopalign : 4;
  69. jumpalign : 0;
  70. constalignmin : 0;
  71. constalignmax : 4;
  72. varalignmin : 0;
  73. varalignmax : 4;
  74. localalignmin : 8;
  75. localalignmax : 8;
  76. recordalignmin : 0;
  77. recordalignmax : 2;
  78. maxCrecordalign : 16
  79. );
  80. first_parm_offset : 8;
  81. heapsize : 256*1024;
  82. stacksize : 262144;
  83. DllScanSupported:false;
  84. use_function_relative_addresses : true;
  85. abi : abi_powerpc_aix;
  86. );
  87. implementation
  88. initialization
  89. {$ifdef cpupowerpc}
  90. {$ifdef macos}
  91. set_source_info(system_powerpc_macos_info);
  92. {$endif macos}
  93. {$endif cpupowerpc}
  94. end.
  95. {
  96. $Log$
  97. Revision 1.12 2003-10-03 22:09:49 peter
  98. * removed paraalign
  99. Revision 1.11 2003/08/08 15:54:01 olle
  100. * merged macos entry/exit code generation into the general one.
  101. Revision 1.10 2002/08/18 17:10:15 olle
  102. + abi_powerpc_macos added to TSystemInfo
  103. Revision 1.9 2003/06/18 10:19:07 olle
  104. * changed .p to .pas to make the compiler compile
  105. Revision 1.8 2003/01/13 22:15:58 florian
  106. * changed ppu extentions from pput to ppu
  107. Revision 1.7 2003/01/13 17:16:44 olle
  108. * Fixed typo
  109. Revision 1.6 2003/01/13 13:03:56 florian
  110. - fixed res entry for MacOS, I don't understand why it worked before :/
  111. Revision 1.5 2002/10/20 17:54:32 olle
  112. * changed newline char, asm file ending and case sensitivity
  113. Revision 1.4 2002/10/02 21:50:19 florian
  114. * importing via external is now possible for macos
  115. Revision 1.3 2002/10/02 21:29:34 florian
  116. * ppus have the extension ppu on macos as well now
  117. Revision 1.2 2002/09/11 19:59:14 florian
  118. * renamed target macosppc to macppc
  119. Revision 1.1 2002/09/06 15:03:51 carl
  120. * moved files to systems directory
  121. Revision 1.3 2002/08/20 21:40:44 florian
  122. + target macos for ppc added
  123. + frame work for mpw assembler output
  124. Revision 1.2 2002/08/12 15:08:39 carl
  125. + stab register indexes for powerpc (moved from gdb to cpubase)
  126. + tprocessor enumeration moved to cpuinfo
  127. + linker in target_info is now a class
  128. * many many updates for m68k (will soon start to compile)
  129. - removed some ifdef or correct them for correct cpu
  130. Revision 1.1 2002/07/26 21:15:38 florian
  131. * rewrote the system handling
  132. }