The Gateway to Computer Science Excellence
0 votes
As actual parameters are stored in the Actual parameter field in case of Activation record then where does formal parameters will be stored?





Here e,f are actual parameters that will be stored in actual parameter field,but where does formal parameters a,b will be stored for f activation record?
in Compiler Design by Boss (25.3k points) | 273 views

2 Answers

0 votes
In call by value the calling procedure passes the r-value of the actual parameters and the compiler puts that into called procedure’s activation record.
by (277 points)
0 votes

During a function call, the parameters are passed via stack or registers (depends on ABI). So, only words are passed. The words may (or may not) be addresses. The address can be in text or data or stack or bss or heap, etc.

by (339 points)

Related questions

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
50,647 questions
56,508 answers
100,950 users