-
For some reason I don't need to add
-lm
for my local EspruinoCompiler to findsinf
, just like I didn't need-lgcc
before.
It would be nice if each compile/upload in the IDE would give some stats (amount of space taken up by strings, total space taken up in flash, free RAM on the connected device). As it is, I have no idea if 4KB is a lot or if that's acceptable.
Since the code needs to be copied to RAM, I wonder if it makes sense to use heatshrink or LZ4 on it.
BTW as the floating point hardware can do only basic operations like +-*/ I tried to add
-lm
and usesinf()
and it pulls quite a lot of code and the binary grows to 4KB. If I used double type andsin()
instead the same code is almost 8KB.