iar_sh2a_v6.yml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. tools_root: &tools_root 'C:\Program Files\IAR Systems\Embedded Workbench 6.0\'
  2. compiler:
  3. path: [*tools_root, 'sh\bin\iccsh.exe']
  4. source_path: '..\src\'
  5. unit_tests_path: &unit_tests_path 'tests\'
  6. build_path: &build_path 'build\'
  7. options:
  8. - -e
  9. - --char_is_signed
  10. - -Ol
  11. - --no_cse
  12. - --no_unroll
  13. - --no_inline
  14. - --no_code_motion
  15. - --no_tbaa
  16. - --no_scheduling
  17. - --no_clustering
  18. - --debug
  19. - --dlib_config
  20. - [*tools_root, 'sh\inc\DLib_Product.h']
  21. - --double=32
  22. - --code_model=huge
  23. - --data_model=huge
  24. - --core=sh2afpu
  25. - --warnings_affect_exit_code
  26. - --warnings_are_errors
  27. - --mfc
  28. - --use_unix_directory_separators
  29. - --diag_suppress=Pe161
  30. includes:
  31. prefix: '-I'
  32. items:
  33. - [*tools_root, 'sh\inc\']
  34. - [*tools_root, 'sh\inc\c']
  35. - 'src\'
  36. - '..\src\'
  37. - 'testdata/'
  38. - *unit_tests_path
  39. - 'vendor\unity\src\'
  40. defines:
  41. prefix: '-D'
  42. items:
  43. - UNITY_SUPPORT_64
  44. - 'UNITY_SUPPORT_TEST_CASES'
  45. object_files:
  46. prefix: '-o'
  47. extension: '.o'
  48. destination: *build_path
  49. linker:
  50. path: [*tools_root, 'sh\bin\ilinksh.exe']
  51. options:
  52. - --redirect __Printf=__PrintfSmall
  53. - --redirect __Scanf=__ScanfSmall
  54. - --config
  55. - [*tools_root, 'sh\config\generic.icf']
  56. - --config_def _CSTACK_SIZE=0x800
  57. - --config_def _HEAP_SIZE=0x800
  58. - --config_def _INT_TABLE=0x10
  59. - --entry __iar_program_start
  60. - --debug_lib
  61. object_files:
  62. path: *build_path
  63. extension: '.o'
  64. bin_files:
  65. prefix: '-o'
  66. extension: '.out'
  67. destination: *build_path
  68. simulator:
  69. path: [*tools_root, 'common\bin\CSpyBat.exe']
  70. pre_support:
  71. - --silent
  72. - [*tools_root, 'sh\bin\shproc.dll']
  73. - [*tools_root, 'sh\bin\shsim.dll']
  74. post_support:
  75. - --plugin
  76. - [*tools_root, 'sh\bin\shbat.dll']
  77. - --backend
  78. - -B
  79. - --core sh2afpu
  80. - -p
  81. - [*tools_root, 'sh\config\debugger\io7264.ddf']
  82. - -d
  83. - sim
  84. colour: true
  85. :unity:
  86. :plugins: []