All Projects → alexfru → Smallerc

alexfru / Smallerc

Licence: other
Simple C compiler

Programming Languages

c
50402 projects - #5 most used programming language

Projects that are alternatives of or similar to Smallerc

Xdpw
XD Pascal: A small embeddable self-hosting Pascal compiler for Windows. Supports Go-style methods and interfaces
Stars: ✭ 199 (-79.82%)
Mutual labels:  self-hosting, compiler, x86
Mini C
Dr Strangehack, or: how to write a self-hosting C compiler in 10 hours
Stars: ✭ 372 (-62.27%)
Mutual labels:  compiler, x86
Easy Linux Pwn
A set of Linux binary exploitation tasks for beginners on various architectures
Stars: ✭ 353 (-64.2%)
Mutual labels:  x86, mips
Flingos
An educational operating system written in C#. A great stepping stone from high to low level development.
Stars: ✭ 451 (-54.26%)
Mutual labels:  compiler, x86
C Compiler
C--compiler which implements LL(1)\LR(0)\SLR\LR(1) and semantic analysis and MIPS generate
Stars: ✭ 286 (-70.99%)
Mutual labels:  compiler, mips
Shecc
A self-hosting and educational C compiler
Stars: ✭ 286 (-70.99%)
Mutual labels:  self-hosting, compiler
Unicorn
Unicorn CPU emulator framework (ARM, AArch64, M68K, Mips, Sparc, PowerPC, RiscV, X86)
Stars: ✭ 4,934 (+400.41%)
Mutual labels:  x86, mips
cross
“Zero setup” cross compilation and “cross testing” of Rust crates
Stars: ✭ 3,550 (+260.04%)
Mutual labels:  mips, x86
Capstone
Capstone disassembly/disassembler framework: Core (Arm, Arm64, BPF, EVM, M68K, M680X, MOS65xx, Mips, PPC, RISCV, Sparc, SystemZ, TMS320C64x, Web Assembly, X86, X86_64, XCore) + bindings.
Stars: ✭ 5,374 (+445.03%)
Mutual labels:  x86, mips
Rop Tool
A tool to help you write binary exploits
Stars: ✭ 590 (-40.16%)
Mutual labels:  x86, mips
Amacc
Small C Compiler generating ELF executable Arm architecture, supporting JIT execution
Stars: ✭ 661 (-32.96%)
Mutual labels:  self-hosting, compiler
Plasma
Plasma is an interactive disassembler for x86/ARM/MIPS. It can generates indented pseudo-code with colored syntax.
Stars: ✭ 2,956 (+199.8%)
Mutual labels:  x86, mips
l4re-core
The core components of the L4Re operating system.
Stars: ✭ 39 (-96.04%)
Mutual labels:  mips, x86
Lbforth
Self-hosting metacompiled Forth, bootstrapping from a few lines of C; targets Linux, Windows, ARM, RISC-V, 68000, PDP-11, asm.js.
Stars: ✭ 293 (-70.28%)
Mutual labels:  compiler, x86
GoRAT
GoRAT (Go Remote Access Tool) is an extremely powerful reverse shell, file server, and control plane using HTTPS reverse tunnels as a transport mechanism.
Stars: ✭ 34 (-96.55%)
Mutual labels:  mips, x86
Dosbox Staging
DOS/x86 emulator focusing on ease of use
Stars: ✭ 412 (-58.22%)
Mutual labels:  x86, dos
Arm now
arm_now is a qemu powered tool that allows instant setup of virtual machines on arm cpu, mips, powerpc, nios2, x86 and more, for reverse, exploit, fuzzing and programming purpose.
Stars: ✭ 719 (-27.08%)
Mutual labels:  x86, mips
toddler
Toddler is a well-designed usable and portable microkernel OS
Stars: ✭ 70 (-92.9%)
Mutual labels:  mips, x86
asmdot
[Unstable] Fast, zero-copy and lightweight (Arm | Mips | x86) assembler in (C | C++ | C# | Go | Haskell | Javascript | Nim | OCaml | Python | Rust).
Stars: ✭ 23 (-97.67%)
Mutual labels:  mips, x86
Steed
[INACTIVE] Rust's standard library, free of C dependencies, for Linux systems
Stars: ✭ 520 (-47.26%)
Mutual labels:  x86, mips

Smaller C is a simple and small single-pass C compiler, currently supporting most of the C language common between C89/ANSI C and C99 (minus some C89 and plus some C99 features).

Currently it generates 16-bit and 32-bit 80386+ assembly code for NASM that can then be assembled and linked into DOS, Windows, Linux and Mac OS X programs. (You may use YASM or FASM instead of NASM)

Code generation for MIPS CPUs is also supported (primarily for RetroBSD).

The compiler is capable of compiling itself.

The core compiler comes with a preprocessor (ucpp), a linker and a compiler driver (the driver invokes the preprocessor, the core compiler, the assembler, and the linker and supports options similar to those of gcc).

The standard C library is work-in-progress and it's close to completion.

See the project documentation for more up-to-date details: https://github.com/alexfru/SmallerC/tree/master/v0100/doc

For the lack of a better place, you can discuss Smaller C here: https://hackaday.io/project/5569-smaller-c

Links: NASM: http://nasm.us/ YASM: http://yasm.tortall.net/ FASM: http://flatassembler.net/ CWSDPMI: https://sandmann.dotster.com/cwsdpmi/ HX DOS Extender: https://web.archive.org/web/20141003032346/http://www.japheth.de/ RetroBSD: http://retrobsd.org/

Other projects based on/using Smaller C: "ROM C" (like ROM Basic but C): https://hackaday.io/project/29198-native-c-pic32-color-video-on-tv FYS OS: http://www.fysnet.net/fysos.htm NewBasic Compiler: http://fysnet.net/nbc.htm Sweet32 CPU and toolchain: https://github.com/Basman74/Sweet32-CPU

Normative and other useful documents on C: C99 + TC1 + TC2 + TC3, WG14 N1256: http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1256.pdf Dave Prosser's C preprocessing algorithm annotated by Diomidis D. Spinellis: http://www.spinellis.gr/blog/20060626/index.html Rationale for C99: http://www.open-std.org/jtc1/sc22/wg14/www/docs/C99RationaleV5.10.pdf The New C Standard: An Economic and Cultural Commentary: http://www.knosof.co.uk/cbook/cbook.html The Development of the C Language by Dennis M. Ritchie: https://www.bell-labs.com/usr/dmr/www/chist.html The Standard C Library by P.J. Plauger https://www.amazon.com/dp/0131315099

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].