On 2008-02-27, Jim Leonard <MobyGamer@[EMAIL PROTECTED]
> 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.


|