You are reading a single comment by @fanoush and its replies. Click here to read the full conversation.
  • BTW as the floating point hardware can do only basic operations like +-*/ I tried to add -lm and use sinf() and it pulls quite a lot of code and the binary grows to 4KB. If I used double type and sin() instead the same code is almost 8KB.

  • For some reason I don't need to add -lm for my local EspruinoCompiler to find sinf, 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.

About

Avatar for fanoush @fanoush started