home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.pascal.borland      Borland Pascal was actually pretty neat      2,978 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 2,623 of 2,978   
   Marco van de Voort to Jim Leonard   
   Re: How to determine contents of data se   
   27 Feb 08 07:37:45   
   
   0f3c8347   
   From: marcov@stack.nl   
      
   On 2008-02-27, Jim Leonard  wrote:   
   > I compile most of my code at the command-line, and I'm writing a new   
   > code base that, for reasons I can't determine, is stuffing a lot into   
   > the data segment.  For example, compiling a "hello world"-type of   
   > program will result in something like:   
   >   
   > 20 lines, 9.3 seconds, 4000 bytes code, 3000 bytes data.   
   >   
   > It's the "3000 bytes data" part that is driving me nuts.  I've gone   
   > over the code over and over again and I'm allocating nearly everything   
   > on the heap (ie. no static VARs) so I honestly can't figure out what   
   > the heck the compiler is stuffing into the data segment.   
      
   Note that that includes the RTL? I know that e.g. the FPC rtl copies the   
   environment on many OSes, parse the arguments and build an array etc.   
      
   Still, for an ancient compiler as TP, 3000 is a tad much. Maybe stack is   
   included? See if playing with the stack size changes the number.   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca