i_zxspectrum.pas 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. {
  2. This unit implements support information structures for the FPC ZX Spectrum target
  3. Copyright (c) 1998-2006 by Peter Vreman
  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_zxspectrum;
  18. {$i fpcdefs.inc}
  19. interface
  20. uses
  21. systems;
  22. const
  23. system_z80_zxspectrum_info : tsysteminfo =
  24. (
  25. system : system_z80_zxspectrum;
  26. name : 'ZX Spectrum';
  27. shortname : 'zxspectrum';
  28. flags : [
  29. {$ifdef Z80_SMARTLINK_SECTIONS}
  30. tf_smartlink_sections,
  31. {$else Z80_SMARTLINK_SECTIONS}
  32. tf_smartlink_library,
  33. tf_no_objectfiles_when_smartlinking,
  34. {$endif Z80_SMARTLINK_SECTIONS}
  35. tf_needs_symbol_size,tf_files_case_sensitive];
  36. cpu : cpu_z80;
  37. unit_env : '';
  38. extradefines : '';
  39. exeext : '.tzx';
  40. defext : '.def';
  41. scriptext : '.sh';
  42. smartext : '.sl';
  43. unitext : '.ppu';
  44. unitlibext : '.ppl';
  45. asmext : '.s';
  46. objext : '.rel';
  47. resext : '.res';
  48. resobjext : '.or';
  49. sharedlibext : '.so';
  50. staticlibext : '.a';
  51. staticlibprefix : 'libp';
  52. sharedlibprefix : 'lib';
  53. sharedClibext : '.so';
  54. staticClibext : '.a';
  55. staticClibprefix : 'lib';
  56. sharedClibprefix : 'lib';
  57. importlibprefix : 'libimp';
  58. importlibext : '.a';
  59. Cprefix : '';
  60. newline : #10;
  61. dirsep : '/';
  62. assem : as_z80_rel;
  63. assemextern : as_sdcc_sdasz80;
  64. {$ifdef Z80_INTERNAL_LINKER}
  65. link : ld_int_zxspectrum;
  66. {$else Z80_INTERNAL_LINKER}
  67. link : ld_none;
  68. {$endif Z80_INTERNAL_LINKER}
  69. linkextern : ld_zxspectrum;
  70. ar : ar_sdcc_sdar;
  71. res : res_none;
  72. dbg : dbg_dwarf2;
  73. script : script_unix;
  74. endian : endian_little;
  75. alignment :
  76. (
  77. procalign : 1;
  78. loopalign : 1;
  79. jumpalign : 0;
  80. jumpalignskipmax : 0;
  81. coalescealign : 0;
  82. coalescealignskipmax : 0;
  83. constalignmin : 0;
  84. constalignmax : 1;
  85. varalignmin : 0;
  86. varalignmax : 1;
  87. localalignmin : 0;
  88. localalignmax : 1;
  89. recordalignmin : 0;
  90. recordalignmax : 1;
  91. maxCrecordalign : 1
  92. );
  93. first_parm_offset : 4;
  94. stacksize : 1024;
  95. stackalign : 1;
  96. abi : abi_default;
  97. llvmdatalayout : 'todo';
  98. );
  99. implementation
  100. initialization
  101. {$ifdef CPUZ80}
  102. {$ifdef zxspectrum}
  103. set_source_info(system_z80_zxspectrum_info);
  104. {$endif zxspectrum}
  105. {$endif CPUZ80}
  106. end.