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
Enterprise-grade ITSM, for every business Icon
Enterprise-grade ITSM, for every business

Give your IT, operations, and business teams the ability to deliver exceptional services—without the complexity.

Freshservice is an intuitive, AI-powered platform that helps IT, operations, and business teams deliver exceptional service without the usual complexity. Automate repetitive tasks, resolve issues faster, and provide seamless support across the organization. From managing incidents and assets to driving smarter decisions, Freshservice makes it easy to stay efficient and scale with confidence.
Try it 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