Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More details on the README with usage instructions #89

Open
aklingam7 opened this issue Oct 6, 2020 · 7 comments
Open

More details on the README with usage instructions #89

aklingam7 opened this issue Oct 6, 2020 · 7 comments

Comments

@aklingam7
Copy link

No description provided.

@aklingam7
Copy link
Author

A simple example of a *.c to *.eir and *.eir to *.bf or *.py might help

@kneelian
Copy link

kneelian commented Mar 5, 2021

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

@kneelian
Copy link

kneelian commented Mar 14, 2021

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

@megapro17
Copy link

This shit is not documented at all. It even has outdated list of supported backends. But there's all options

static target_func_t get_target_func(const char* ext) {

@qaziquza
Copy link

qaziquza commented Nov 11, 2021

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!

@francogrex
Copy link

Indeed it is extremely poor in terms of documentation: how to build and how to use...

@francogrex
Copy link

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

or download the zip and complement the links that are missing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants