Comments (7)
This shit is not documented at all. It even has outdated list of supported backends. But there's all options
Line 68 in a79315d
from elvm.
A simple example of a *.c
to *.eir
and *.eir
to *.bf
or *.py
might help
from elvm.
Reading the slides of the author tells me approximately this:
You should first make the folder. Assuming it succeeds, you get out/8cc
the compiler, out/eli
the interpreter and out/elc
that does the conversion.
out/8cc -Ilibc -S prog.c -o prog.eir
this compiles prog.c
to prog.eir
out/eli prog.eir
this runs the IR source
out/elc -bf prog.eir > prog.bf
this compiles the IR to Brainfuck
I have not tested this suite, planning to now
from elvm.
I have just tested it, it is working as intended. The .eir output file from a simple printf("Hello, world!")
is ~160KB, the converted .bf output is ~13 MB. Use a good interpreter. Do note that the make
will fail if you only download the source as a .zip; you have to check it out through git
from elvm.
I fell like calling it "shit" is a bit much. This repo is a work of genius. I agree the docs could be better, but really, a LISP in bf??? That is awesome!
from elvm.
Indeed it is extremely poor in terms of documentation: how to build and how to use...
from elvm.
I have just tested it, it is working as intended. The .eir output file from a simple
printf("Hello, world!")
is ~160KB, the converted .bf output is ~13 MB. Use a good interpreter. Do note that themake
will fail if you only download the source as a .zip; you have to check it out throughgit
or download the zip and complement the links that are missing.
from elvm.
Related Issues (20)
- Syscall, etc.
- Test fails on WSL HOT 1
- Invalid behavior with reverse loops HOT 1
- Stupid question, but how do I compile C files to eir? HOT 1
- x86 bootsector backend
- Grass backend HOT 2
- 8cc cannot find header files: stdio.h and others HOT 1
- HTML5 backend?
- Is this project alive? HOT 1
- The demo site does not accept input
- Volatile Semantics HOT 1
- Support for Minecraft commands? HOT 1
- bootstraping with ELVM and 8cc. HOT 1
- Latest commit fails tests HOT 1
- Building with LLVM=1 HOT 5
- Increment/decrement on pointers may be incorrect
- Problem with `make` HOT 8
- What about a SUBLEQ backend HOT 2
- EOF is not working as intended HOT 16
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from elvm.