flatcc has no external dependencies except for build and compiler tools, and the C runtime library. With concurrent Ninja builds, a small client project can build flatcc with libraries, generate schema code, link the project and execute a test case in a few seconds, produce binaries between 15K and 60K, read small buffers in 30ns, build FlatBuffers in about 600ns, and with a larger executable also handle optional json parsing or printing in less than 2 us for a 10 field mixed type message. The JSON parser may change the interface for parsing union vectors in a future release which requires code generation to match library versions. This project builds flatcc, a compiler that generates FlatBuffers code for C given a FlatBuffer schema file. This introduction also creates a separate test project with the traditional monster example, here in a C version. The setup script builds flatcc using CMake, then creates a test project directory with the monster example.

Features

  • The flatcc compiler is implemented as a standalone tool instead of extending Googles flatc compiler
  • This project builds flatcc, a compiler that generates FlatBuffers code for C given a FlatBuffer schema file
  • Generated FlatBuffers reader and builder headers for C
  • JSON Parsing and Printing
  • Ability to concatenate all output into one file, or to stdout
  • Pre-generated reflection headers for handling .bfbs files

Project Samples

Project Activity

See All Activity >

Categories

Compilers, JSON

License

Apache License V2.0

Follow FlatCC FlatBuffers in C for C

FlatCC FlatBuffers in C for C Web Site

Other Useful Business Software
Custom VMs From 1 to 96 vCPUs With 99.95% Uptime Icon
Custom VMs From 1 to 96 vCPUs With 99.95% Uptime

General-purpose, compute-optimized, or GPU/TPU-accelerated. Built to your exact specs.

Live migration and automatic failover keep workloads online through maintenance. One free e2-micro VM every month.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of FlatCC FlatBuffers in C for C!

Additional Project Details

Operating Systems

Linux, Mac, Windows

Programming Language

C

Related Categories

C Compilers, C JSON Software

Registered

2023-10-24