Shop OBEX P1 Docs P2 Docs Learn Events
where does limit of 1024 dat symbols come from — Parallax Forums

where does limit of 1024 dat symbols come from

volkervolker Posts: 2
edited 2009-09-05 11:23 in Propeller 1
Hello,
im trying to run all 8 cogs with assembly code. but my routines grew so long that i get a failure message (when trying to flash) that the limit of 1024 dat symbols was exceeded.
does anyone know the reason or a workaround?
thanks for help (please wink.gif )

Comments

  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2009-09-03 19:34
    It's probably a hard limit on the size of the compiler/assembler's DAT symbol table. You might be able to get around this by converting some of your global symbols to ":local" ones. Hopefully they will then get flushed out of the symbol table when they go out of scope during assembly. If not, you can always reuse local symbol names, so long as they're in different scopes. Without knowing the inner workings of the compiler/assembler, though, this is only speculation.

    -Phil
  • Agent420Agent420 Posts: 439
    edited 2009-09-03 19:38
    I wonder if you'd encounter the same issue with an alternative compiler such as BST?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
  • JonnyMacJonnyMac Posts: 9,198
    edited 2009-09-03 22:10
    I don't think so as the destination and source fields in the PASM instruction are limited to 9 bits.
  • BradCBradC Posts: 2,601
    edited 2009-09-03 23:36
    Agent420 said...
    I wonder if you'd encounter the same issue with an alternative compiler such as BST?

    No you won't. You will encounter limits with numbers of case statements and nested constructs the same as the Parallax compiler (only for compatibility reasons) but there are no static tables in bst, therefore no limits on the number of symbols.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    lt's not particularly silly, is it?
  • volkervolker Posts: 2
    edited 2009-09-05 11:23
    yes, converting the symbols to local ones worked very well, thanks phil!

    @Agent420, BST looks nice, i just downloaded it. i will have a look if that would solve the problem, too and report again...
Sign In or Register to comment.