i_nds.pas 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. {
  2. This unit implements support information structures for GameBoy Advance
  3. Copyright (c) 1998-2002 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. { This unit implements support information structures for nds. }
  18. unit i_nds;
  19. interface
  20. uses
  21. systems;
  22. const
  23. system_arm_nds_info : tsysteminfo =
  24. (
  25. system : system_arm_nds;
  26. name : 'Nintendo DS';
  27. shortname : 'nds';
  28. flags : [tf_needs_symbol_size,tf_files_case_sensitive,tf_use_function_relative_addresses
  29. ,tf_smartlink_sections];
  30. cpu : cpu_arm;
  31. unit_env : '';
  32. extradefines : '';
  33. exeext : '.bin';
  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. Cprefix : '';
  52. newline : #10;
  53. dirsep : '/';
  54. assem : as_gas;
  55. assemextern : as_gas;
  56. link : nil;
  57. linkextern : nil;
  58. ar : ar_gnu_ar;
  59. res : res_none;
  60. dbg : dbg_stabs;
  61. script : script_unix;
  62. endian : endian_little;
  63. alignment :
  64. (
  65. procalign : 4;
  66. loopalign : 4;
  67. jumpalign : 0;
  68. constalignmin : 0;
  69. constalignmax : 4;
  70. varalignmin : 0;
  71. varalignmax : 4;
  72. localalignmin : 4;
  73. localalignmax : 8;
  74. recordalignmin : 0;
  75. recordalignmax : 4;
  76. maxCrecordalign : 4
  77. );
  78. first_parm_offset : 8;
  79. stacksize : 262144;
  80. abi : abi_default
  81. );
  82. implementation
  83. initialization
  84. {$ifdef arm}
  85. {$ifdef nds}
  86. set_source_info(system_arm_nds_info);
  87. {$endif nds}
  88. {$endif arm}
  89. end.