Skip to content

Generates C programs which print an array of floats as text.

Notifications You must be signed in to change notification settings

pascal-cuoq/floattexter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FloatTexter: The dumbest way of encoding text at compile time

Inspired by this tweet. This program generates C programs which print a float array as a text string.

Compilation and Configuration

  • Check config.h for number of digits used and platform endianness.
  • Check config.mk for C compiler and C compiler flags.

Then just hit make ¯\_(ツ)_/¯

Usage

floattexter <string> will print the generated program to stdout, so just redirect or pipe it to where you need it.

Example

Example

FAQ

Q: Why?

A: Why not. I love stupid shit.

Q: Is that seriously all?

A: Yep.

License

GPL3, I guess? Does it matter? Do what you want with this thing lmao

About

Generates C programs which print an array of floats as text.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published