Optimize memory usage

Hi there,

I recently adquired a Forerunner 230, and being a developer myself, I found Connect IQ very appealing. I downloaded the SDK and I were soon sideloading my own fields (in fact I am developing a big field that shows several things in it).

The problem I've got is that I run out of memory. I understand that fields have a limited memory, but how much limited they are? For instance, my app ran out of memory in the simulator with an array of 64 element, but worked with an array of 32. I just only want to store the heart rate history, so I need just 64 bytes... even my first Amstrad CPC 64Kb could handle that so I am sure I am missing something.

So, what are the memory limits for developing a field? Is there a limit for code? Is there a limit for data? Are there some guidelines on how optimize memory usage? I mean... I am no expert with Monkey C...

I apologize if this has been asked before or this info is readily available anywhere... I tried to find answers to that but I couldn't.

Regards,
Kurt.-