Announcement

Collapse
No announcement yet.

More than 64K of variables errors...

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • More than 64K of variables errors...

    I'm beginning to hit more than 64K of variables errors during compile
    time in PB 3.5 now and then - and the compiler can't finish the
    compile run...

    Is the Fre(-1) function a guideline for that, or is this something
    else?

    If it isn't, is there an internal PB function that will return the
    value which trips this during compile time so that I can watch this
    and begin to know when to oouch this or that as needed to still stay
    in the ball game?

    Curious mind wants to know..

    ------------------
    Mike Luther
    [email protected]

    [This message has been edited by Mike Luther (edited November 28, 2002).]
    Mike Luther
    [email protected]

  • #2
    That level of detail is not provided by the compiler, but essentially it means that your <U>scalar</U> variables are occupying more then one 64Kb segment.

    IOW, it's probably a pretty big program to have that many scalar variables!

    Therefore, the program might suit being broken up into smaller CHAIN modules or similar?



    ------------------
    Lance
    PowerBASIC Support
    mailto:[email protected][email protected]</A>
    Lance
    mailto:[email protected]

    Comment


    • #3
      Looks like Compile/Get Info might be useful. See code and data sizes.

      It's been a while since I've used the MS-DOS compiler, but I think DATA is the size of your default data segment(+literal pool?).

      MCM

      Michael Mattias
      Tal Systems (retired)
      Port Washington WI USA
      [email protected]
      http://www.talsystems.com

      Comment


      • #4
        Or use more LOCAL variables in place of GLOBALs, where practical.

        ------------------
        Tom Hanlin
        PowerBASIC Staff

        Comment

        Working...
        X