From: Andrew Cagney <ac131313@cygnus.com>
To: Andrew Cagney <ac131313@cygnus.com>
Cc: Jim Blandy <jimb@cygnus.com>, Eli Zaretskii <eliz@is.elta.co.il>,
gdb-patches@sources.redhat.com
Subject: Re: [rfa/doco] Srink the overlay diagram
Date: Tue, 29 Jan 2002 13:58:00 -0000 [thread overview]
Message-ID: <3C571B00.6070203@cygnus.com> (raw)
In-Reply-To: <3C5635C6.90409@cygnus.com>
[-- Attachment #1: Type: text/plain, Size: 228 bytes --]
> I think:
>
> @example @group
> <figure>
> @anchor{x-spot the title}<title>
> @end end
>
> Diagram @xref{x-spot the title} .... would work better.
The attached does this. I ended up using @pxref{}.
Andrew
[-- Attachment #2: diffs --]
[-- Type: text/plain, Size: 5333 bytes --]
2002-01-21 Andrew Cagney <ac131313@redhat.com>
* gdb.texinfo (How Overlays Work): Srink the overlay diagram.
Index: gdb.texinfo
===================================================================
RCS file: /cvs/src/src/gdb/doc/gdb.texinfo,v
retrieving revision 1.76
diff -p -r1.76 gdb.texinfo
*** gdb.texinfo 2002/01/20 11:59:38 1.76
--- gdb.texinfo 2002/01/29 21:55:57
*************** overlay's machine code from the large me
*** 6418,6461 ****
for it in the instruction memory, and then jump to its entry point
there.
@example
@group
! Data Instruction Larger
! Address Space Address Space Address Space
! +-----------+ +-----------+ +-----------+
! | | | | | |
! +-----------+ +-----------+ +-----------+<-- overlay 1
! | program | | main | | | load address
! | variables | | program | | overlay 1 |
! | and heap | | | ,---| |
! +-----------+ | | | | |
! | | +-----------+ | +-----------+
! +-----------+ | | | | |
! mapped --->+-----------+ / +-----------+<-- overlay 2
! address | overlay | <-' | overlay 2 | load address
! | area | <-----| |
! | | <---. +-----------+
! | | | | |
! +-----------+ | | |
! | | | +-----------+<-- overlay 3
! +-----------+ `--| | load address
! | overlay 3 |
! | |
! +-----------+
! | |
! +-----------+
! To map an overlay, copy its code from the larger address space
! to the instruction address space. Since the overlays shown here
! all use the same mapped address, only one may be mapped at a time.
@end group
@end example
! This diagram shows a system with separate data and instruction address
! spaces. For a system with a single address space for data and
! instructions, the diagram would be similar, except that the program
! variables and heap would share an address space with the main program
! and the overlay area.
An overlay loaded into instruction memory and ready for use is called a
@dfn{mapped} overlay; its @dfn{mapped address} is its address in the
--- 6418,6465 ----
for it in the instruction memory, and then jump to its entry point
there.
+ @c NB: In the below the mapped area's size is greater or equal to the
+ @c size of all overlays. This is intentional to remind the developer
+ @c overlays don't necessarily need to be the same size.
+
@example
@group
! Data Instruction Larger
! Address Space Address Space Address Space
! +-----------+ +-----------+ +-----------+
! | | | | | |
! +-----------+ +-----------+ +-----------+<-- overlay 1
! | program | | main | .----| overlay 1 | load address
! | variables | | program | | +-----------+
! | and heap | | | | | |
! +-----------+ | | | +-----------+<-- overlay 2
! | | +-----------+ | | | load address
! +-----------+ | | | .-| overlay 2 |
! | | | | | |
! mapped --->+-----------+ | | +-----------+
! address | | | | | |
! | overlay | <-' | | |
! | area | <---' +-----------+<-- overlay 3
! | | <---. | | load address
! +-----------+ `--| overlay 3 |
! | | | |
! +-----------+ | |
! +-----------+
! | |
! +-----------+
! @anchor{A code overlay}A code overlay
@end group
@end example
! The diagram (@pxref{A code overlay}) shows a system with separate data
! and instruction address spaces. To map an overlay, the program copies
! its code from the larger address space to the instruction address space.
! Since the overlays shown here all use the same mapped address, only one
! may be mapped at a time. For a system with a single address space for
! data and instructions, the diagram would be similar, except that the
! program variables and heap would share an address space with the main
! program and the overlay area.
An overlay loaded into instruction memory and ready for use is called a
@dfn{mapped} overlay; its @dfn{mapped address} is its address in the
next prev parent reply other threads:[~2002-01-29 21:58 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-01-20 21:11 Andrew Cagney
2002-01-21 1:59 ` Eli Zaretskii
2002-01-21 11:46 ` Andrew Cagney
2002-01-22 1:13 ` Eli Zaretskii
2002-01-24 18:55 ` Jim Blandy
2002-01-29 7:58 ` Andrew Cagney
2002-01-29 13:58 ` Andrew Cagney [this message]
2002-02-07 15:51 ` Andrew Cagney
2002-01-24 18:54 ` Jim Blandy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3C571B00.6070203@cygnus.com \
--to=ac131313@cygnus.com \
--cc=eliz@is.elta.co.il \
--cc=gdb-patches@sources.redhat.com \
--cc=jimb@cygnus.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox