2
0

i_human68k.pas 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. {
  2. Copyright (c) 2023 by Karoly Balogh
  3. This unit implements support information structures for Human 68k,
  4. the operating system of the Sharp X68000
  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 Human 68k. }
  19. unit i_human68k;
  20. {$i fpcdefs.inc}
  21. interface
  22. uses
  23. systems;
  24. const
  25. system_m68k_human68k_info : tsysteminfo =
  26. (
  27. system : system_m68k_human68k;
  28. name : 'Human 68k';
  29. shortname : 'human68k';
  30. flags : [tf_use_8_3,tf_requires_proper_alignment,
  31. tf_smartlink_sections,tf_under_development];
  32. cpu : cpu_m68k;
  33. unit_env : '';
  34. extradefines : '';
  35. exeext : '.x';
  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 : '.dll';
  46. staticlibext : '.a';
  47. staticlibprefix : '';
  48. sharedlibprefix : '';
  49. sharedClibext : '.dll';
  50. staticClibext : '.a';
  51. staticClibprefix : 'lib';
  52. sharedClibprefix : '';
  53. importlibprefix : 'libimp';
  54. importlibext : '.a';
  55. Cprefix : '_';
  56. newline : #10;
  57. dirsep : '/'; { ... the underlying tools (binutils/vlink/vasm) prefer Unix paths }
  58. assem : as_m68k_vasm;
  59. assemextern : as_m68k_vasm;
  60. link : ld_none;
  61. linkextern : ld_human68k;
  62. ar : ar_gnu_ar;
  63. res : res_ext;
  64. dbg : dbg_stabs;
  65. script : script_unix;
  66. endian : endian_big;
  67. alignment :
  68. (
  69. procalign : 4;
  70. loopalign : 4;
  71. jumpalign : 0;
  72. jumpalignskipmax : 0;
  73. coalescealign : 0;
  74. coalescealignskipmax: 0;
  75. constalignmin : 0;
  76. constalignmax : 4;
  77. varalignmin : 0;
  78. varalignmax : 4;
  79. localalignmin : 0;
  80. localalignmax : 4;
  81. recordalignmin : 0;
  82. recordalignmax : 2;
  83. maxCrecordalign : 4
  84. );
  85. first_parm_offset : 8;
  86. stacksize : 16384;
  87. stackalign : 2;
  88. abi : abi_default;
  89. llvmdatalayout : 'todo';
  90. );
  91. implementation
  92. initialization
  93. {$ifdef cpu68}
  94. {$ifdef human68k}
  95. set_source_info(system_m68k_human68k_info);
  96. {$endif human68k}
  97. {$endif cpu68}
  98. end.