Inspired by this tweet. This program generates C programs which print a float array as a text string.
- Check
config.h
for number of digits used andplatform endianness. - Check
config.mk
for C compiler and C compiler flags.
Then just hit make
¯\_(ツ)_/¯
floattexter <string>
will print the generated program to stdout, so just redirect or pipe it to where you need it.
Q: Why?
A: Why not. I love stupid shit.
Q: Is that seriously all?
A: Yep.
GPL3, I guess? Does it matter? Do what you want with this thing lmao