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
$300 in Free Credit for Your Google Cloud Projects Icon
$300 in Free Credit for Your Google Cloud Projects

Build, test, and explore on Google Cloud with $300 in free credit. No hidden charges. No surprise bills.

Launch your next project with $300 in free Google Cloud credit—no hidden charges. Test, build, and deploy without risk. Use your credit across the Google Cloud platform to find what works best for your needs. After your credits are used, continue building with free monthly usage products. Only pay when you're ready to scale. Sign up in minutes and start exploring.
Start Free Trial
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