Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
RealNeGate committed Jan 5, 2023
1 parent 9ac26c6 commit a92a3a9
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 19 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
shell: cmd
run: |
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat
make -j
make -j OPT=1
timeout-minutes: 10

- name: upload artifacts
Expand All @@ -39,7 +39,7 @@ jobs:
run: git submodule update --init --recursive

- name: Build TB
run: make -j
run: make -j OPT=1
timeout-minutes: 10

- name: upload artifacts
Expand All @@ -58,7 +58,7 @@ jobs:
run: git submodule update --init --recursive

- name: Build TB
run: make -j
run: make -j OPT=1
timeout-minutes: 10

- name: upload artifacts
Expand Down
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
CC = clang
OPT = 0
OPT ?= 0

# file extensions
ifeq ($(OS),Windows_NT)
Expand Down Expand Up @@ -50,7 +50,9 @@ endif
ifeq ($(OS),Windows_NT)
clean:
: del /F /Q $(subst /,\,$(OBJECTS)) tildebackend$(X)
: del /F /Q tb.tar.gz
else
clean:
: rm -f $(OBJECTS) tildebackend$(X)
: rm -f tb.tar.gz
endif
15 changes: 0 additions & 15 deletions README.md

This file was deleted.

40 changes: 40 additions & 0 deletions README.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
TildeBackend (Tilde or TB for short)

TB is compiler backend in the form of a reasonable C library. This is built as an alternative to other larger compiler toolchains while providing the optimizations, machine code generation and object file export functionality necessary for the development of compilers.

# Roadmap

Code generation:
We're starting with x64 but will be moving focus to Aarch64 soon.

Optimizer:
It's almost complete with all the -O1 level passes (mostly missing inlining).
After that we can move towards -O2 level stuff (the goal is to compete with
LLVM so we need to be a bit ambitious).

Debug info:
Codeview support and DWARF has not yet been started, there's plans on making a
new debug info format eventually.

Output targets:
We currently have basic ELF64, COFF64, some current work is being done for
PE and Macho-O. We got exporting object files but wanna go further because
linkers ain't supposed to be separate programs.

# Compiling

You'll need to install Clang or GCC (MSVC build script isn't available right
now) and Make.

```
git clone https://github.com/RealNeGate/tilde-backend.git
cd tilde-backend
git submodule update --init --recursive
make -j
```

If you wish to compile with optimizations add OPT=2 to the args.

# Getting Started

Coming soon

0 comments on commit a92a3a9

Please sign in to comment.