Giter Club home page Giter Club logo

b's Introduction

The B Programming Language

This is my hobby compiler for the B programming language. The goal was to create a B variant that is usuable on modern computers. More will follow once I write a rough draft manual.

Releases

You can download the latest pre-built binaries here. NOTE: Although the compiler has builds for win64 and Linux, the compiler can only generate code for win32.

Getting Started

To get started, you'll need to download the compiler for your specific operating system. Then you'll need to add the bin directory to your system's path. From here, you can access the compiler via the terminal by using b.

Requirements

The table below lists the required assembler and linker for each supported operating system. You will need to have them install and on your system's path in order for the B compiler to function properly.

OS Assembler Linker
Windows NASM MSVC Link
Linux NASM ld

Example

Here is a simple hello world example.

main () {
    puts("Hello World!*n");
    return 0;
}

Now save that in hello.b. To compile this on a win32 platform, open up your terminal and type b -f win32 -o hello.exe hello.b. Afterwards, if you run hello.exe from a terminal, you should see this:

Hello World!

Congratulations, you've compiled your first B program!

Links

b's People

Contributors

i8087 avatar

Watchers

 avatar

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.