Hacker News new | ask | show | jobs
by theragra 410 days ago
I recently encountered this when developing for atmel attiny13a, that has 1KB memory for code. I found that my code somehow cannot fit. Then found that just one line takes around 100 bytes. Insane!

After some experiments, I remembered university course and was able to understand what is going on.

When using float types or operations, fpu emulation is used, which takes huge amount of memory for anything.

I think atmel is using gcc, but not sure if you emulation is part of gcc or atmel libraries.