Adding more docs and utility tasks.

This commit is contained in:
Luigi Rosso
2021-05-01 18:10:33 -07:00
parent d7e6dc7b0e
commit 5d0e8d045f
3 changed files with 73 additions and 2 deletions

View File

@@ -1,4 +1,8 @@
{
"disasexpl.associations": {
"**/*.c": "${workspaceFolder}/build/bin/assembly/${fileDirname}/${fileBasenameNoExtension}.S",
"**/*.cpp": "${workspaceFolder}/build/bin/assembly/${fileDirname}/${fileBasenameNoExtension}.S"
},
"files.associations": {
"type_traits": "cpp",
"string": "cpp",

36
.vscode/tasks.json vendored Normal file
View File

@@ -0,0 +1,36 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [{
"label": "run tests",
"type": "shell",
"command": "cd dev && ./test.sh",
"group": "test",
"presentation": {
"reveal": "always",
"panel": "new"
}
},
{
"label": "gen assembly",
"type": "shell",
"command": "mkdir -p ${workspaceFolder}/build/bin/assembly/${fileDirname}/ && clang++ -O3 -g -std=c++17 -o ${workspaceFolder}/build/bin/assembly/${fileDirname}/${fileBasenameNoExtension}.S -Wall -fno-exceptions -fno-rtti -I${workspaceFolder}/include -S ${file}",
"group": "test",
"presentation": {
"reveal": "silent",
"panel": "new"
}
},
{
"label": "disassemble",
"command": "${command:disasexpl.show}",
"dependsOn": ["gen assembly"],
"problemMatcher": [],
"presentation": {
"reveal": "silent",
"panel": "new"
}
}
]
}