Menu

#162 #pragma stack size

open
nobody
None
5
2008-04-06
2005-02-03
giles
No

A #pragma pre-processor flag to get onboardc to adjust
rsrc (?) to increase the default stack and / or heap size.

Standard stack size defaults to between 6k and 12k.
This is very small given that modern palm devices have
megabytes of RAM at their disposal.

It would be nice to be able to increase stack size, and
possibly heap size as well (i've not experienced a
problem with heap size, but i've read that it is
limited by default as well).

Discussion

  • Ryan Rix

    Ryan Rix - 2008-04-06

    Logged In: YES
    user_id=1727174
    Originator: NO

    Seems easy to add -- Would just create a 'pref' resource at build time as specified here: http://www.mail-archive.com/palm-dev-forum@news.palmos.com/msg67129.html

    However, I'm not sure what this will do on modern devices -- The stack should be MUCH larger than it was 7 years ago :)

    I'll take a poke at it tonight.

     
  • John Wilund

    John Wilund - 2008-04-06

    Logged In: YES
    user_id=574706
    Originator: NO

    IU'll move this to task as I second you becomeing the PoC and this Feature request beeing taken care of.

     
  • John Wilund

    John Wilund - 2008-04-06
    • milestone: 355801 -->
     
  • Steve Little

    Steve Little - 2008-04-07

    Logged In: YES
    user_id=583634
    Originator: NO

    I'm sure I looked at this a while ago...

    As I recall, I think I implemented it, but couldn't find a way to verify whether it worked...

     
  • John Wilund

    John Wilund - 2008-04-11

    Logged In: YES
    user_id=574706
    Originator: NO

    Steve, is this done in the 'rloc' or 'code 0' resources?

     
  • John Wilund

    John Wilund - 2008-04-11

    Logged In: YES
    user_id=574706
    Originator: NO

    Steve, is this done in the 'rloc' or 'code 0' resources?

     

Log in to post a comment.