i_ps1.pas 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. {
  2. Copyright (c) 2024 by Kirill Kranz
  3. This unit implements support information structures for ps1
  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 ps1. }
  18. unit i_ps1;
  19. {$i fpcdefs.inc}
  20. interface
  21. uses
  22. systems;
  23. const
  24. system_mipsel_ps1_info : tsysteminfo =
  25. (
  26. system : system_mipsel_ps1;
  27. name : 'PlayStation 1 for MIPSEL';
  28. shortname : 'ps1';
  29. flags : [tf_no_pic_supported, tf_smartlink_sections, tf_files_case_sensitive];
  30. cpu : cpu_mipsel;
  31. unit_env : '';
  32. extradefines : '';
  33. exeext : '';
  34. defext : '.def';
  35. scriptext : '.sh';
  36. smartext : '.sl';
  37. unitext : '.ppu';
  38. unitlibext : '.ppl';
  39. asmext : '.s';
  40. objext : '.o';
  41. resext : '.res';
  42. resobjext : '.or';
  43. sharedlibext : '.so';
  44. staticlibext : '.a';
  45. staticlibprefix : 'libp';
  46. sharedlibprefix : 'lib';
  47. sharedClibext : '.so';
  48. staticClibext : '.a';
  49. staticClibprefix : 'lib';
  50. sharedClibprefix : 'lib';
  51. importlibprefix : 'libimp';
  52. importlibext : '.a';
  53. // p_ext_support : false;
  54. Cprefix : '';
  55. newline : #10;
  56. dirsep : '/';
  57. assem : as_gas;
  58. assemextern : as_gas;
  59. link : ld_none;
  60. linkextern : ld_ps1;
  61. ar : ar_gnu_ar;
  62. res : res_elf;
  63. dbg : dbg_none;
  64. script : script_unix;
  65. endian : endian_little;
  66. alignment :
  67. (
  68. procalign : 8;
  69. loopalign : 8;
  70. jumpalign : 0;
  71. jumpalignskipmax : 0;
  72. coalescealign : 0;
  73. coalescealignskipmax: 0;
  74. constalignmin : 0;
  75. constalignmax : 8;
  76. varalignmin : 0;
  77. varalignmax : 8;
  78. localalignmin : 8;
  79. localalignmax : 8;
  80. recordalignmin : 0;
  81. recordalignmax : 8;
  82. maxCrecordalign : 8
  83. );
  84. first_parm_offset : 0;
  85. stacksize : 32*1024*1024;
  86. stackalign : 8;
  87. abi : abi_default;
  88. llvmdatalayout : 'e-p:32:32:32-i1:8:8-i8:8:32-i16:16:32-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-n32-S64';
  89. );
  90. implementation
  91. initialization
  92. set_source_info(system_mipsel_ps1_info);
  93. end.