Compare commits

...

6 Commits

7 changed files with 36 additions and 0 deletions

0
.gitignore vendored Normal file
View File

View File

@ -0,0 +1,4 @@
FROM ubuntu:18.04
RUN apt-get update && apt-get install -y vim gcc indent clang clang-format gdb binutils nasm xxd llvm lld
WORKDIR /dmzOS
ENTRYPOINT [ "bash" ]

7
config/.vimrc Normal file
View File

@ -0,0 +1,7 @@
set nobackup
set nowritebackup
set noswapfile
set autoread
set number relativenumber
autocmd BufWritePost *.[ch] exec "!indent -kr -nut % && rm %~"

BIN
dmzOS/test/clang_test Executable file

Binary file not shown.

BIN
dmzOS/test/gcc_test Executable file

Binary file not shown.

12
dmzOS/test/test.c Normal file
View File

@ -0,0 +1,12 @@
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char *argv[])
{
if (argc < 2) {
printf("Please provide at least one argument\n");
exit(1);
};
printf("Hello, C!\n");
return 0;
}

13
docker-compose.yml Normal file
View File

@ -0,0 +1,13 @@
version: '3.8'
services:
c_toolchain:
build:
context: ./Dockerfiles
dockerfile: dockerfile.c_toolchain
container_name: c_toolchain
tty: true
stdin_open: true
volumes:
- ./dmzOS:/dmzOS
- ./config/.vimrc:/root/.vimrc