i_zxspectrum.pas 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  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. link : ld_int_zxspectrum;
  65. linkextern : ld_zxspectrum;
  66. ar : ar_sdcc_sdar;
  67. res : res_none;
  68. dbg : dbg_dwarf2;
  69. script : script_unix;
  70. endian : endian_little;
  71. alignment :
  72. (
  73. procalign : 1;
  74. loopalign : 1;
  75. jumpalign : 0;
  76. jumpalignskipmax : 0;
  77. coalescealign : 0;
  78. coalescealignskipmax : 0;
  79. constalignmin : 0;
  80. constalignmax : 1;
  81. varalignmin : 0;
  82. varalignmax : 1;
  83. localalignmin : 0;
  84. localalignmax : 1;
  85. recordalignmin : 0;
  86. recordalignmax : 1;
  87. maxCrecordalign : 1
  88. );
  89. first_parm_offset : 4;
  90. stacksize : 1024;
  91. stackalign : 1;
  92. abi : abi_default;
  93. llvmdatalayout : 'todo';
  94. );
  95. implementation
  96. initialization
  97. {$ifdef CPUZ80}
  98. {$ifdef zxspectrum}
  99. set_source_info(system_z80_zxspectrum_info);
  100. {$endif zxspectrum}
  101. {$endif CPUZ80}
  102. end.