dmzOS/README.md

51 lines
2.4 KiB
Markdown
Raw Permalink Normal View History

2024-02-09 16:36:44 +00:00
# dmzOS
2024-02-15 17:08:03 +00:00
## About
2024-02-09 19:18:33 +00:00
**dmzOS** is an operating system written by a group of computer enthusiasts gathered around [Decentrala](https://decentrala.org/). You are free to explore, learn, and contribute!
2024-02-09 16:36:44 +00:00
2024-02-15 17:08:03 +00:00
### Description
2024-02-09 16:36:44 +00:00
* Written from scratch in C and asm.
2024-02-17 12:36:42 +00:00
* POSIX-compliant (as we are aspiring to [Stan Dard](https://wiki.osdev.org/Stan_Dard)).
2024-02-09 16:36:44 +00:00
* For the amd64 architecture.
* Extensively documented.
2024-02-15 17:08:03 +00:00
### Goals
2024-02-09 16:36:44 +00:00
* Sharpen low-level programming skills.
* Familiarize with amd64 architecture details.
* Have fun along the way!
2024-02-15 17:08:03 +00:00
### Success criteria
2024-02-09 16:36:44 +00:00
* Run vim on the OS.
2024-02-15 17:08:03 +00:00
### Rules
2024-02-09 16:36:44 +00:00
* Please provide an adequate entry in the Wiki for each non-trivial code contribution.
2024-02-09 19:18:33 +00:00
2024-02-15 17:08:03 +00:00
To learn more about the project, please refer to the [Wiki](https://gitea.dmz.rs/sborovic/dmzOS/wiki).
## DevOps
### Development environment
Essential software (plus dependencies) that are needed for the development are available through a custom Ubuntu-based Docker image (located in `Dockerfiles/dockerfile.c_toolchain` as well as on Docker Hub). This includes:
- `gcc`: *The GNU Compiler Collection.*
- `indent` GNU C code formatter.
- `clang`: a compiler front end for the C, C++, Objective-C, and Objective-C++ programming languages
- `clang-format`: a tool to automatically format C/C++/Objective-C code
- `gdb`: *The GNU Debugger.*
- `make`: a tool which controls the generation of executables and other non-source files of a program from the program's source files.
- `objdump`: a command-line program for displaying various information about object files.
- `nasm`: *The Netwide Assembler* is an assembler and disassembler for the Intel x86 architecture.
- `xxd`: a command-line program that may be used to manage, convert, and display binary files.
2024-02-15 17:16:56 +00:00
- `ld`: *The GNU Linker*.
- `lld`: a linker from the LLVM project that is a drop-in replacement for system linkers and runs much faster than them.
2024-02-15 17:08:03 +00:00
- `vim`: a highly configurable text editor.
> *Note*
> A `.vimrc` file with a rule to format code on buffer save in line with *Kernighan and Ritchie style* (with 4-space indentation) comes pre-installed inside the image.
Booting the latest `.iso` image of *dmzOS* is done using a [Dockerized QEMU](https://github.com/qemus/qemu-docker).
2024-02-11 15:41:10 +00:00
2024-02-15 17:08:03 +00:00
#### Command cheatsheet
* To get into a `bash` shell that is bound to the `dmzOS` directory:
```docker
docker-compose run --rm c_toolchain
```
> *Note*
> Any changes in the container's `dmzOS` directory will be reflected in the local `dmzOS` directory.