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 13 of 15 Topic 1089 of 1118
Post > Topic >>

Re: How to determine contents of data segment?

by Jim Leonard <MobyGamer@[EMAIL PROTECTED] > Mar 4, 2008 at 07:30 AM

On Mar 4, 1:05 am, Klaus Jorgensen <k...@[EMAIL PROTECTED]
> wrote:
> Im****t the map file into an Excel sheet with the hex offsets in column
> A and the symbol names in column B.
> Then use the formula "=HEX2BIN(A2)-HEX2BIN(A1)" in column C - that is,
> depending on which row is on top.
> Copy column C to column D with values only - then sort on column D.

I'll try that tonight, thanks very much!

Always learning, even after 20 years of working with TP...  This
exercise has clued me into a few things:

- foo:string is the same as foo:string[255] (knew this already but
it's a good reminder never to use empty strings again)

- PChar arrays (aka defined as const foo:PChar='testing') take up
space in the data segment :-/

- The compiler takes advantage of the fact that PChar arrays are
pointers to null-terminated strings and is smart enough to optimize
100% identical contents by only having one copy and the others
reference it via pointers.  I was not expecting that at all; that is
very cool.
 




 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 Fri Jul 25 18:34:00 CDT 2008.