Skip to content

Commit 7a068ec

Browse files
committed
remove C references
1 parent 038e9de commit 7a068ec

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

FAQ.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
* [What is "stack overflow"?](#q500)
4343
* [What is "stack underflow"?](#q600)
4444
* [On the LS-8, why does the stack pointer start at address `F4`, when the first stack element is at `F3`?](#q700)
45-
* [How are stacks and subroutines used by higher-level languages like C?](#q800)
45+
* [How are stacks and subroutines used by higher-level languages like Python?](#q800)
4646
* [Why does the CPU allow for stack overflow or underflow?](#q2900)
4747
* [Why does the CPU support a stack and not some other data structure?](#q3000)
4848
* [On the LS-8, why does `POP` need an operand?](#q3500)
@@ -172,10 +172,10 @@ stored there. Exactly where we wanted it.
172172
------------------------------------------------------------------------
173173

174174
<a name="q800"></a>
175-
### How are stacks and subroutines used by higher-level languages like C?
175+
### How are stacks and subroutines used by higher-level languages like Python?
176176

177-
In C, when you make a function call, a bunch of space is allocated (pushed) on
178-
the stack to hold a number of things:
177+
In Python, when you make a function call, a bunch of space is allocated
178+
(pushed) on the stack to hold a number of things:
179179

180180
* The return address to come back to after the function completes
181181
* Space for all the function parameters
@@ -184,7 +184,7 @@ the stack to hold a number of things:
184184
This allocated chunk of stack is called a [stack
185185
frame](https://en.wikipedia.org/wiki/Call_stack#STACK-FRAME).
186186

187-
When you call any function (including when `main()` gets called in C):
187+
When you call any function:
188188

189189
1. A new stack frame is allocated (pushed)
190190
2. Parameter values are copied from the function arguments to their spots on the
@@ -853,4 +853,4 @@ from RAM.
853853

854854
> Capacities and speeds are examples only. Actual number vary.
855855
856-
------------------------------------------------------------------------
856+
------------------------------------------------------------------------

0 commit comments

Comments
 (0)