1
0
Fork 0
forked from koniifer/ableos

Hypothetical ideas laid out

This commit is contained in:
able 2024-04-24 23:08:34 -05:00
parent 1cc414eaaf
commit 088e628cde
7 changed files with 42 additions and 4 deletions

View file

@ -1,4 +1,5 @@
{
"rust-analyzer.checkOnSave.allTargets": false,
"rust-analyzer.showUnlinkedFileNotification": false
"rust-analyzer.showUnlinkedFileNotification": false,
"C_Cpp.errorSquiggles": "disabled"
}

View file

@ -0,0 +1,14 @@
# Dev
Dev is a (currently) hypothetical tool meant to be used to ease development and compilation on ableOS.
## Usage
A `meta.toml` file must be in the project root. A `src` folder and a `lib` folder must exist.
Binaries should be put into a folder named `bin`.
```
bin/
lib/
src/
```
The folders `lib/` and `bin/` should both be left out of source tracking.

View file

@ -0,0 +1,16 @@
[package]
name = "dev"
authors = ["able"]
[dependants.libraries]
file_service = "0.0.1"
[dependants.binaries]
susc.version = "1.0.0"
[build.debug]
command = "susc src/main.hbl"
[run.debug]
depends = ["build.debug"]
command = "bin/main.hbf"

View file

@ -0,0 +1,5 @@
#include "lib/file_service.h"
int main() {
File fhand = file_open("meta.toml");
}

View file

@ -12,4 +12,4 @@ command = "fisp src/main.fisp"
[run.debug]
depends = ["build.debug"]
command = ""
command = "bin/main.hbf"

View file

@ -9,8 +9,8 @@ authors = ["able"]
htasm = ""
[build.debug]
command = "hblang src/main.hbl"
command = "htasm src/main.S"
[run.debug]
depends = ["build.debug"]
command = ""
command = "bin/main.hbf"

View file

@ -1,3 +1,5 @@
jmp start
start:
li64 r1, 3
li64 r2, 1