Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Pascal Borland > Re: How to dete...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 15 Topic 1089 of 1118
Post > Topic >>

Re: How to determine contents of data segment?

by Marco van de Voort <marcov@[EMAIL PROTECTED] > Feb 27, 2008 at 07:37 AM

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.
 




 15 Posts in Topic:
How to determine contents of data segment?
Jim Leonard <MobyGamer  2008-02-26 16:55:52 
Re: How to determine contents of data segment?
Jim Leonard <MobyGamer  2008-02-26 21:26:27 
Re: How to determine contents of data segment?
Marco van de Voort <ma  2008-02-27 07:37:45 
Re: How to determine contents of data segment?
Klaus Jorgensen <kj@[E  2008-02-27 13:12:46 
Re: How to determine contents of data segment?
Robert Riebisch <Rober  2008-02-27 21:59:34 
Re: How to determine contents of data segment?
Jim Leonard <MobyGamer  2008-02-29 09:33:14 
Re: How to determine contents of data segment?
Klaus Jorgensen <kj@[E  2008-02-29 21:42:09 
Re: How to determine contents of data segment?
Jim Leonard <MobyGamer  2008-03-03 12:10:43 
Re: How to determine contents of data segment?
Jim Leonard <MobyGamer  2008-03-03 12:59:08 
Re: How to determine contents of data segment?
Robert Riebisch <Rober  2008-03-03 22:15:17 
Re: How to determine contents of data segment?
Jim Leonard <MobyGamer  2008-03-03 17:16:12 
Re: How to determine contents of data segment?
Klaus Jorgensen <kj@[E  2008-03-04 08:05:18 
Re: How to determine contents of data segment?
Jim Leonard <MobyGamer  2008-03-04 07:30:04 
Re: How to determine contents of data segment?
Jim Leonard <MobyGamer  2008-03-05 07:12:53 
Re: How to determine contents of data segment?
Klaus Jorgensen <kj@[E  2008-03-05 18:05:23 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Jul 26 5:39:29 CDT 2008.