init: homework5

This commit is contained in:
2025-04-22 12:27:26 +08:00
parent e1acc51117
commit 6712f5bf30
7 changed files with 238 additions and 0 deletions
+80
View File
@@ -0,0 +1,80 @@
{
"name": "homework5",
"type": "C51",
"dependenceList": [],
"srcDirs": [
"src"
],
"virtualFolder": {
"name": "<virtual_root>",
"files": [],
"folders": []
},
"outDir": "build",
"deviceName": null,
"packDir": null,
"miscInfo": {
"uid": "9c9d006068a4118c55b2fd6daf3986f5"
},
"targets": {
"Debug": {
"excludeList": [],
"toolchain": "Keil_C51",
"compileConfig": {
"options": "null"
},
"uploader": "Custom",
"uploadConfig": {
"bin": "",
"commandLine": "",
"eraseChipCommand": ""
},
"uploadConfigMap": {},
"custom_dep": {
"name": "default",
"incList": [],
"libList": [],
"defineList": []
},
"builderOptions": {
"SDCC": {
"version": 3,
"beforeBuildTasks": [],
"afterBuildTasks": [],
"global": {
"device": "mcs51",
"optimize-type": "speed",
"use-non-free": false
},
"c/cpp-compiler": {
"language-c": "c99"
},
"asm-compiler": {},
"linker": {
"$mainFileName": "main",
"output-format": "hex"
}
},
"Keil_C51": {
"version": 2,
"beforeBuildTasks": [],
"afterBuildTasks": [],
"global": {
"ram-mode": "SMALL",
"rom-mode": "LARGE"
},
"c/cpp-compiler": {
"optimization-type": "SPEED",
"optimization-level": "level-8"
},
"asm-compiler": {},
"linker": {
"remove-unused": true,
"output-format": "elf"
}
}
}
}
},
"version": "3.5"
}
+20
View File
@@ -0,0 +1,20 @@
##########################################################################################
# Append Compiler Options For Source Files
##########################################################################################
# syntax:
# <your pattern>: <compiler options>
# For get pattern syntax, please refer to: https://www.npmjs.com/package/micromatch
#
# examples:
# 'main.cpp': --cpp11 -Og ...
# 'src/*.c': -gnu -O2 ...
# 'src/lib/**/*.cpp': --cpp11 -Os ...
# '!Application/*.c': -O0
# '**/*.c': -O2 -gnu ...
version: "2.0"
options:
Debug:
files: {}
virtualPathFiles: {}