summaryrefslogtreecommitdiffstats
path: root/images/cpu_supplement/stack_frame_contents.ditaa
diff options
context:
space:
mode:
authorMarçal Comajoan Cara <mcomajoancara@gmail.com>2018-11-18 11:11:04 +0100
committerJoel Sherrill <joel@rtems.org>2018-11-19 13:11:55 -0600
commitae05a2783765b26f66d087bc8325f4a241260fd4 (patch)
treed5b8f37f537545e472dbb983e789057535f2a6ce /images/cpu_supplement/stack_frame_contents.ditaa
parentcpu-supplement/sparc_v8_stacks_regwin.rst: Basic formatting with TBDs (diff)
downloadrtems-docs-ae05a2783765b26f66d087bc8325f4a241260fd4.tar.bz2
Improve SPARC Calling Overview Webpage conversion
Fixed tables, typos, redrawn images and converted ASCII art to ditaa and PNG, and improved the overall format. This work was part of GCI 2018. Closes #3567.
Diffstat (limited to 'images/cpu_supplement/stack_frame_contents.ditaa')
-rw-r--r--images/cpu_supplement/stack_frame_contents.ditaa35
1 files changed, 35 insertions, 0 deletions
diff --git a/images/cpu_supplement/stack_frame_contents.ditaa b/images/cpu_supplement/stack_frame_contents.ditaa
new file mode 100644
index 0000000..c608d56
--- /dev/null
+++ b/images/cpu_supplement/stack_frame_contents.ditaa
@@ -0,0 +1,35 @@
+ low addresses
+
+ +-------------------------+
+ %sp --> | 16 words for storing |
+ | LOCAL and IN registers |
+ +-------------------------+
+ | one:-word pointer to |
+ | aggregate return value |
+ +-------------------------+
+ | 6 words for callee |
+ | to store register |
+ | arguments |
+ +-------------------------+
+ | outgoing parameters |
+ | past the 6th, if any |
+ +-------------------------+
+ | space, if needed, for |
+ | compiler temporaries |
+ | and saved floating- |
+ | point registers |
+ +-------------------------+
+
+ +-------------------------+
+ | space dynamically |
+ | allocated via the |
+ | alloca() library call |
+ +-------------------------+
+ | space, if needed, for |
+ | automatic arrays, |
+ | aggregates, and |
+ | addressable scalar |
+ | automatics |
+ +-------------------------+
+ %fp -->
+ high addresses