2
0

i_amstradcpc.pas 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. {
  2. Copyright (c) 2022 by the Free Pascal development team
  3. This unit implements support information structures for the Amstrad CPC
  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. unit i_amstradcpc;
  18. {$i fpcdefs.inc}
  19. interface
  20. uses
  21. systems;
  22. const
  23. system_z80_amstradcpc_info : tsysteminfo =
  24. (
  25. system : system_z80_amstradcpc;
  26. name : 'Amstrad CPC';
  27. shortname : 'amstradcpc';
  28. flags : [
  29. tf_under_development,
  30. {$ifdef Z80_SMARTLINK_SECTIONS}
  31. tf_smartlink_sections,
  32. {$else Z80_SMARTLINK_SECTIONS}
  33. tf_smartlink_library,
  34. tf_no_objectfiles_when_smartlinking,
  35. {$endif Z80_SMARTLINK_SECTIONS}
  36. tf_cld,tf_no_generic_stackcheck,tf_emit_stklen];
  37. cpu : cpu_z80;
  38. unit_env : 'CPCUNITS';
  39. extradefines : '';
  40. exeext : '.com';
  41. defext : '.def';
  42. scriptext : '.bat';
  43. smartext : '.sl';
  44. unitext : '.ppu';
  45. unitlibext : '.ppl';
  46. asmext : '.s';
  47. objext : '.o';
  48. resext : '.res';
  49. resobjext : '.or';
  50. sharedlibext : '.dll';
  51. staticlibext : '.a';
  52. staticlibprefix : '';
  53. sharedlibprefix : '';
  54. sharedClibext : '.dll';
  55. staticClibext : '.a';
  56. staticClibprefix : 'lib';
  57. sharedClibprefix : '';
  58. importlibprefix : '';
  59. importlibext : '.al';
  60. Cprefix : '';
  61. newline : #13#10;
  62. dirsep : '\';
  63. assem : as_z80_rel;
  64. assemextern : as_sdcc_sdasz80;
  65. link : ld_int_msxdos;
  66. linkextern : ld_msxdos;
  67. ar : ar_sdcc_sdar;
  68. res : res_none;
  69. dbg : dbg_dwarf2;
  70. script : script_unix;
  71. endian : endian_little;
  72. alignment :
  73. (
  74. procalign : 1;
  75. loopalign : 1;
  76. jumpalign : 0;
  77. jumpalignskipmax : 0;
  78. coalescealign : 0;
  79. coalescealignskipmax : 0;
  80. constalignmin : 0;
  81. constalignmax : 1;
  82. varalignmin : 0;
  83. varalignmax : 1;
  84. localalignmin : 0;
  85. localalignmax : 1;
  86. recordalignmin : 0;
  87. recordalignmax : 1;
  88. maxCrecordalign : 1
  89. );
  90. first_parm_offset : 4;
  91. stacksize : 1024;
  92. stackalign : 1;
  93. abi : abi_default;
  94. llvmdatalayout : 'todo';
  95. );
  96. implementation
  97. initialization
  98. {$ifdef cpuz80}
  99. {$ifdef amstradcpc}
  100. set_source_info(system_z80_amstradcpc_info);
  101. {$endif amstradcpc}
  102. {$endif cpuz80}
  103. end.