Skip to content

How to bootstrap it from scratch #2

@certik

Description

@certik

Anybody who knows C can use your mini-c as the minimal self-hosting subset of C compiler and can implement the whole C compiler or other languages.

What would also be interesting is to bootstrap mini-c from scratch. Currently you require some kind of a C compiler like gcc to be present on the system.

Here is an example of an approach that doesn't require any compiler at all, it starts from a small hand written machine code and then it goes from there to develop a structured programming language called BCC: http://rano.org/bcompiler.html (I made a mirror at github here: https://github.com/certik/bcompiler/blob/master/bcc.bc)

So the goal would be to write a compiler in BCC that can compile mini-c.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions