-
-
Notifications
You must be signed in to change notification settings - Fork 72
/
Copy pathstm8.iar.verify.json
550 lines (550 loc) · 21.1 KB
/
stm8.iar.verify.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
{
"title": "IAR for STM8 Options",
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"definitions": {
"misc-controls": {
"markdownDescription": "Other Options",
"description.zh-cn": "其他选项",
"size": "huge",
"type": [
"string",
"array"
],
"items": {
"type": "string"
},
"default": ""
}
},
"properties": {
"beforeBuildTasks": {
"markdownDescription": "List of commands to execute before build",
"description.zh-cn": "构建前要执行的命令列表",
"type": "array",
"default": [
{
"name": "clean",
"command": "del /Q \"${OutDir}\\*.*\""
}
],
"items": {
"type": "object",
"required": [
"name",
"command"
],
"properties": {
"name": {
"markdownDescription": "A readable name for display",
"description.zh-cn": "用于显示的可读名称",
"type": "string"
},
"command": {
"markdownDescription": "Shell command line",
"description.zh-cn": "Shell 命令行",
"type": "string"
},
"disable": {
"markdownDescription": "Disable this command",
"description.zh-cn": "禁用此命令",
"type": "boolean",
"enum": [
true,
false
]
},
"abortAfterFailed": {
"markdownDescription": "Whether to skip subsequent commands if this command failed",
"description.zh-cn": "是否在此命令失败时,跳过后续的命令",
"type": "boolean",
"enum": [
true,
false
]
},
"stopBuildAfterFailed": {
"markdownDescription": "Whether to stop compiling directly when this command failed",
"description.zh-cn": "是否在此命令失败时,直接停止编译",
"type": "boolean",
"enum": [
true,
false
]
}
}
}
},
"afterBuildTasks": {
"markdownDescription": "List of commands to execute after build",
"description.zh-cn": "构建结束后要执行的命令列表",
"type": "array",
"default": [
{
"name": "clean",
"command": "del \"${OutDir}\\*._*\""
}
],
"items": {
"type": "object",
"required": [
"name",
"command"
],
"properties": {
"name": {
"markdownDescription": "A readable name for display",
"description.zh-cn": "用于显示的可读名称",
"type": "string"
},
"command": {
"markdownDescription": "Shell command line",
"description.zh-cn": "Shell 命令行",
"type": "string"
},
"disable": {
"markdownDescription": "Disable this command",
"description.zh-cn": "禁用此命令",
"type": "boolean",
"enum": [
true,
false
]
},
"abortAfterFailed": {
"markdownDescription": "Whether to skip subsequent commands if this command failed",
"description.zh-cn": "是否在此命令失败时,跳过后续的命令",
"type": "boolean",
"enum": [
true,
false
]
}
}
}
},
"global": {
"markdownDescription": "Global Options",
"description.zh-cn": "全局选项",
"type": "object",
"properties": {
"code-mode": {
"description": "code mode",
"type": "string",
"default": "small",
"enum": [
"small",
"medium",
"large"
]
},
"data-mode": {
"description": "data mode",
"type": "string",
"default": "medium",
"enum": [
"small",
"medium",
"large"
]
},
"output-debug-info": {
"markdownDescription": "Output debug information",
"description.zh-cn": "输出调试信息",
"type": "string",
"default": "disable",
"enum": [
"disable",
"enable"
]
},
"printf-formatter": {
"type": "string",
"description": "printf formatter option",
"default": "auto",
"enum": [
"auto",
"tiny",
"small",
"small-without-multibyte",
"large",
"large-without-multibyte",
"full",
"full-without-multibyte"
],
"enumDescriptions": [
"Automatic choice of formatter.",
"No specifier a or A, no specifier n, no float, no flags.",
"No specifier a or A, no specifier n, no float.",
"No specifier a or A, no specifier n, no float, without multibytes",
"No specifier a or A.",
"No specifier a or A, without multibytes.",
"Full formatting.",
"Full formatting, without multibytes."
]
},
"scanf-formatter": {
"type": "string",
"description": "scanf formatter option",
"default": "auto",
"enum": [
"auto",
"small",
"small-without-multibyte",
"large",
"large-without-multibyte",
"full",
"full-without-multibyte"
],
"enumDescriptions": [
"Automatic choice of formatter.",
"No specifier n, no float, no scan set, no assignment suppressing.",
"No specifier n, no float, no scan set, no assignment suppressing, without multibytes.",
"No specifier n, no float.",
"No specifier n, no float, without multibytes.",
"Full formatting.",
"Full formatting, without multibytes."
]
},
"math-functions": {
"type": "string",
"description": "math functions option",
"default": "default",
"enum": [
"default",
"smaller"
],
"enumDescriptions": [
"Default variants of cos, sin, tan, log, log10, pow, and exp.",
"Smaller size, higher execution speed, less precision, smaller input range."
]
}
}
},
"c/cpp-compiler": {
"markdownDescription": "C/C++ Compiler Options",
"description.zh-cn": "C/C++ 编译器选项",
"type": "object",
"properties": {
"language-c": {
"markdownDescription": "C Standard",
"description.zh-cn": "C 标准",
"type": "string",
"default": "c99",
"enum": [
"c89",
"c99"
]
},
"language-cpp": {
"markdownDescription": "C++ Standard",
"description.zh-cn": "C++ 标准",
"type": "string",
"default": "Extended-EC++",
"enum": [
"Embedded-C++",
"Extended-EC++"
]
},
"optimization": {
"markdownDescription": "Optimization Level",
"description.zh-cn": "代码优化级别",
"type": "string",
"default": "no",
"enum": [
"no",
"low",
"medium",
"high",
"size",
"speed",
"speed-no-size-constraints"
],
"enumDescriptions": [
"not optimize",
"low",
"medium",
"high, balanced",
"high, size",
"high, speed",
"high, speed, no size constraints"
]
},
"runtime-lib": {
"description": "The C/EC++ runtime library configuration",
"type": "string",
"default": "null",
"enum": [
"normal",
"full",
"null"
],
"enumDescriptions": [
"No locale interface, C locale, no file descriptor support, no multibytes in printf and scanf, and no hex floats in strtod.",
"Full locale interface, C locale, file descriptor support, multibytes in printf and scanf, and hex floats in strtod.",
"No use"
]
},
"language-conformance": {
"description": "language conformance",
"type": "string",
"default": "IAR-extensions",
"enum": [
"strict",
"standard",
"IAR-extensions"
]
},
"virtual-bytes": {
"description": "virtual bytes",
"type": "string",
"default": "16",
"enum": [
"16",
"12"
]
},
"destroy-cpp-static-object": {
"description": "destroy c++ static object",
"type": "boolean",
"default": false,
"enum": [
true,
false
]
},
"allow-VLA": {
"description": "allow VLA, for language c",
"type": "boolean",
"enum": [
true,
false
]
},
"use-cpp-inline-semantics": {
"description": "use c++ inline semantics, for language c++",
"type": "boolean",
"enum": [
true,
false
]
},
"require-prototypes": {
"description": "require prototypes",
"type": "boolean",
"enum": [
true,
false
]
},
"floating-point": {
"description": "floating point",
"type": "boolean",
"enum": [
true,
false
]
},
"multibyte-support": {
"description": "multibyte support",
"type": "boolean",
"enum": [
true,
false
]
},
"plain-char-is-signed": {
"markdownDescription": "Plain Char is Signed",
"type": "boolean",
"enum": [
true,
false
]
},
"turn-Warning-into-errors": {
"markdownDescription": "Turn warnings into errors",
"description.zh-cn": "将警告转化为错误",
"type": "boolean",
"enum": [
true,
false
]
},
"misc-controls": {
"markdownDescription": "Other C/C++ Compiler Options",
"description.zh-cn": "C/C++ 编译器附加选项",
"$ref": "#/definitions/misc-controls"
}
}
},
"asm-compiler": {
"markdownDescription": "Assembler Options",
"description.zh-cn": "汇编器选项",
"type": "object",
"properties": {
"defines": {
"readable_name": "Preprocessor Definitions",
"readable_name.zh-cn": "预处理器定义",
"markdownDescription": "Preprocessor Definitions",
"description.zh-cn": "预处理器定义",
"type": "array",
"items": {
"type": "string"
}
},
"case-sensitive-user-symbols": {
"description": "case sensitive user symbols",
"type": "boolean",
"enum": [
true,
false
]
},
"multibyte-support": {
"description": "multibyte support",
"type": "boolean",
"enum": [
true,
false
]
},
"allow-mnemonics-first-column": {
"description": "allow mnemonics first column",
"type": "boolean",
"enum": [
true,
false
]
},
"allow-directives-first-column": {
"description": "allow directives first column",
"type": "boolean",
"enum": [
true,
false
]
},
"misc-controls": {
"markdownDescription": "Other Assembler Options",
"description.zh-cn": "汇编器附加选项",
"$ref": "#/definitions/misc-controls"
}
}
},
"linker": {
"markdownDescription": "Linker Options",
"description.zh-cn": "链接器选项",
"type": "object",
"required": [
"linker-config"
],
"dependencies": {
"use-C_SPY-debug-lib": [
"auto-search-runtime-lib"
]
},
"properties": {
"output-format": {
"type": "string",
"default": "elf",
"description": "Output Format",
"description.zh-cn": "输出格式",
"enum": [
"elf",
"lib"
],
"enumDescriptions": [
"ELF",
"LIB"
]
},
"$disableOutputTask": {
"type": "boolean",
"markdownDescription": "Don't Output Hex/Bin File",
"description.zh-cn": "不生成 Hex/Bin 文件",
"enum": [
true,
false
]
},
"auto-search-runtime-lib": {
"description": "auto search runtime lib",
"type": "boolean",
"enum": [
true,
false
]
},
"use-C_SPY-debug-lib": {
"description": "Use C-SPY debug library",
"type": "boolean",
"enum": [
true,
false
]
},
"merge-duplicate-sections": {
"description": "merge duplicate sections",
"type": "boolean",
"enum": [
true,
false
]
},
"config-defines": {
"description": "define some config symbols",
"type": "array",
"default": [
"_CSTACK_SIZE=0x0200",
"_HEAP_SIZE=0x0000"
],
"items": {
"type": "string"
}
},
"program-entry": {
"readable_name": "Program Entry",
"readable_name.zh-cn": "程序入口",
"description": "Program entry,default: __iar_program_start",
"description.zh-cn": "程序入口,默认:__iar_program_start",
"type": "string",
"default": "__iar_program_start"
},
"linker-config": {
"readable_name": "Linker config file path",
"readable_name.zh-cn": "链接脚本路径",
"description": "linker config file path.\n Example: \"lnkstm8xxx.icf\"\n or \"./lnkstm8xxx.icf\" (relative by workspace folder)\n or \"${ToolchainRoot}/stm8/config/lnkstm8xxx.icf\"",
"type": "string",
"default": "lnkstm8s103f3.icf"
},
"misc-controls": {
"markdownDescription": "Other Linker Options",
"description.zh-cn": "链接器附加选项",
"$ref": "#/definitions/misc-controls"
},
"object-order": {
"type": "array",
"readable_name": "Object Order",
"readable_name.zh-cn": "Object Order",
"markdownDescription": "Object Order (used to determine the order in which object files are linked)",
"description.zh-cn": "Object Order(用于决定某些 obj 文件的链接顺序)",
"default": [],
"properties": {
"pattern": {
"type": "string",
"readable_name": "Pattern",
"description": "A glob pattern (https://github.com/dazinator/DotNet.Glob) to match a object (*.o) file",
"default": "**/your/pattern/for/object/file/path/*.o"
},
"order": {
"type": "number",
"readable_name": "Order",
"description": "An integer number (The smaller the value, the higher the priority)",
"default": 0
}
}
}
}
}
}
}