Conventional Procedure Call
- (a) Parameter passing in a local procedure call: the stack before the call to
read() - (b) The stack while the called procedure is active
Example (C lang): read from file
# include <sys/types.h>
# include <unistd.h>
...
char buf[20];
size_t bytes;
ssize_t bytes_read;
int fd;
...
bytes = sizeof(buf);
bytes_read = read(fd, buf, bytes);