GithubHelp home page GithubHelp logo

kirk33 / jcc816 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from iacon1/jcc816

0.0 0.0 0.0 7.25 MB

Java C Compiler for the 65c816, an attempt to use Java to compile C to CA65-style 65c816 assembly - specifically, the SNES's main processor (the Ricoh 5a22) and the SA1 cartridge-mounted coprocessor.

License: MIT License

C 1.85% Java 89.61% Assembly 7.32% ANTLR 1.22% Batchfile 0.01%

jcc816's Introduction

JCC816

This is a C Compiler for the 65c816 - specifically, the Ricoh 5a22 processor inside the SNES as well as the SA1 cartridge-mounted coprocessor.

This README is incomplete.

Usage

JCC816 [-c] [-D <level>] [-h] [-H <output>] [-l <output> <header>]
       [-O <level>] [-p <output>] [-r <path>] [-V <level>]
A C compiler for the WDC 65c816 and especially Ricoh 5a22 processor.

 -c,--cleanup                      Ensures the assembler doesn't leave
                                   behind unecessary files.
 -D,--debug-level <level>          Sets the level of debug info generated,
                                   from 0 to 3.
 -h,--help                         Displays information about the
                                   program's usage.
 -H,--generate-header <output>     Generates a default header
                                   configuration file for the user to
                                   edit.
 -l,--link <output> <header>       Links the provided source and object
                                   files into a single specified SFC file
                                   according to a provided header
                                   configuration.
 -O,--optimization-level <level>   Sets the level of optimization, from 0
                                   to 3. Note that only levels 0 and 2 are
                                   meaningful for object files.
 -p,--preprocessor <output>        Preprocesses the provided source file
                                   and stores it in a specified source
                                   file.
 -r,--root <path>                  Specifies the root directory to search
                                   for files in. Otherwise defaults to
                                   current directory.
 -V,--debug-level <level>          Sets the level of console output, from
                                   0 to 1.

Caveats

It is currently riddled with bugs, hence why it's version 0.X.

SA1 support is not complete.

The following features of C are currently unsupported:

  • Bitfields
  • Floating-points
  • Variadic functions and VLAs
  • Most of the standard library
  • Object file generation

Best Practices

The following should be taken into account for best performance:

  • Function pointers and recursion cause imperformant assembly and should be avoided.

Further documentation

jcc816's People

Contributors

iacon1 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.