Coder Social home page Coder Social logo

Comments (7)

megapro17 avatar megapro17 commented on May 19, 2024 2

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) {

from elvm.

aklingam7 avatar aklingam7 commented on May 19, 2024 1

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

from elvm.

kneelian avatar kneelian commented on May 19, 2024 1

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.

kneelian avatar kneelian commented on May 19, 2024

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.

qaziquza avatar qaziquza commented on May 19, 2024

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.

francogrex avatar francogrex commented on May 19, 2024

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

from elvm.

francogrex avatar francogrex commented on May 19, 2024

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.

from elvm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.