Welcome to the Rockbox Technical Forums!
#define MAX_BOOKMARKS 100
Saint would know a lot more than I, as I'm not a RB developer, but I AM a C programmer:
static char global_read_buffer[MAX_BOOKMARK_SIZE];static char global_bookmark[MAX_BOOKMARK_SIZE];these are the only two items in the file nick_p mentions that allocate space based on MAX_BOOKMARK_SIZE.these two items don't go on the stack (or at least for a "normal" C compiler they don't, I'll assume the one used in RB follows that convention) since they are file-scoped static variables. they probably end up somewhere in the heap. therefore they shouldn't cause any problems with the stack (except: if the stack grows so large--from other causes-- that it collides with the heap, then you're in a world of hurt, so putting two larger arrays on the heap could make that collision more likely, given the fixed, small amounts of RAM these embedded systems contain.)
There is no impact on stack or memory, only on disk storage space. And frankly, limiting the file to 10 entries of a maximum size of 350 bytes in these days of gigabyte drives is ridiculous.
Quote from: TAC109 on September 23, 2014, 04:37:47 PMThere is no impact on stack or memory, only on disk storage space. And frankly, limiting the file to 10 entries of a maximum size of 350 bytes in these days of gigabyte drives is ridiculous.Hard disk space isn't important. Its RAM that limits you. Some SWCODEC targets have only 2MBs, while very popular ones like the Clip+ have just 8 MB.
I think that if you're going to increase this, it has to be a setting. I for one don't actually want a long list of recent bookmarks.
Page created in 0.118 seconds with 14 queries.