aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Herron <phil@nebuloninc.com>2020-04-13 16:17:11 +0100
committerPhilip Herron <philip.herron@embecosm.com>2020-11-27 17:02:06 +0000
commit70137b4ec6a58340f0132bc6b317144c8923980b (patch)
tree0f74495f43be18ec92ad2a71f0edf24835aad6bf
parentead24ec6247577824cfce46ffcc9d179fb281fb2 (diff)
downloadgcc-70137b4ec6a58340f0132bc6b317144c8923980b.zip
gcc-70137b4ec6a58340f0132bc6b317144c8923980b.tar.gz
gcc-70137b4ec6a58340f0132bc6b317144c8923980b.tar.bz2
Update README for more instructions
-rw-r--r--README.md33
1 files changed, 33 insertions, 0 deletions
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..ca1df45
--- /dev/null
+++ b/README.md
@@ -0,0 +1,33 @@
+![C/C++ CI](https://github.com/philberty/gccrs/workflows/C/C++%20CI/badge.svg)
+# GCC Rust
+
+This is an implementation of rust following the gccgo style front-end.
+
+## Compilation for Development
+
+Fetch dependancies for ubuntu:
+
+```bash
+$ apt install build-essential libgmp3-dev libmpfr-dev libmpc-dev flex bison autogen gcc-multilib
+```
+
+Clone
+
+```bash
+$ git clone https://github.com/philberty/gccrs
+```
+
+Dev Build
+
+```bash
+$ mkdir gccrs-build
+$ cd gccrs-build
+$ ../gccrs/configure --prefix=$HOME/gccrs-install --disable-bootstrap --enable-multilib --enable-languages=c,c++,rust
+$ make
+```
+
+Running the compiler itself - no need to make install
+
+```
+$ gdb --args ./gcc/grs1 test1.rs -frust-dump-parse -dumpbase test.rs -mtune=generic -march=x86-64 -auxbase-strip test.s -O0 -version -fdump-tree-gimple -o test.s -L/lib/x86_64-linux-gnu -L/lib/../lib64 -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib64
+```