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
Award-Winning Medical Office Software Designed for Your Specialty Icon
Award-Winning Medical Office Software Designed for Your Specialty

Succeed and scale your practice with cloud-based, data-backed, AI-powered healthcare software.

RXNT is an ambulatory healthcare technology pioneer that empowers medical practices and healthcare organizations to succeed and scale through innovative, data-backed, AI-powered software.
Learn More
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