I am currently writing my own language, which have to be compiled to .ino. A part of the compiler needs to evaluate the storage usage of the .ino file, however i am unsure how the storage usage of a sketch is calculated. I have looked on the source code for the IDE without luck.
Any ideas to how i can calculate storage without using the IDE?
Any answer will be much appreciated