answersLogoWhite

0

When you call a function, the stack pointer is adjusted to cater for the function's arguments (if any), the caller's return address (mandatory), the function's local variables (if any) and the function's exception handlers (if any).

User Avatar

Wiki User

10y ago

What else can I help you with?

Related Questions

Is an operating system responsible for managing processor time and memory allocation?

The processor time is a function of the processor. The memory allocation is a function of the operating system.


What Linked list uses.type of memory allocation?

Linked lists use dynamic memory allocation (also called "heap memory allocation", as the linked list is stored in heap memory).


What are the different function used for dynamic memory allocation?

alloc :- to allocate memory. calloc :- to free the memory.


With every use of memory allocation function should be used to release allocated memory which is no longer needed?

free()


What do you mean by run time memory allocation?

When the allocation of memory to the program is done on need, during the execution of a program, it is called as the dynamic memory allocation. Memory is allocated from a free memory pool called as heap.The only way to access this dynamically allocated memory is through pointers. Dynamically allocated memory can be freed at run time and again added to heap.


What are types of memory allocation?

There are two types of memory allocations. 1. Static memory allocation 2. Dynamic memory allocation


What is the comparison between paged memory allocation and paging memory allocation?

Paged memory allocation and paging memory allocation essentially refer to the same concept in modern operating systems, where memory is divided into fixed-size blocks called pages. Paged memory allocation allows the system to manage memory more efficiently by loading only the necessary pages into physical memory, which helps prevent fragmentation. In contrast, paging memory allocation focuses specifically on the method of mapping virtual addresses to physical addresses using a page table. Both techniques aim to optimize memory use and improve process isolation and performance.


What is meant by contiguous memory allocation in C?

Contiguous memory allocation in C programming refers to the assigning of consecutive memory blocks to a process. Contiguous memory allocation is one of the oldest and most popular memory allocation schemes in programming.


Compare and contrast dynamic memory allocation and the allocation of files in secondary storage?

Static Memory Allocation: Allocating the total memory requirements that a data structure might need all at once without regard for the actual amount needed at execution time. Dynamic Memory Allocation: The opposite strategy of static memory allocation - Dynamic Memory Allocation, involves allocating memory as-needed.


What is contiguous memory allocation in os?

Memory allocation: When a program asks for memory and gets it. Contiguous allocation: When the memory is in one big block, for example memory addresses 1000-2000, as opposed to "fragmented allocation" where the memory comes as several smaller blocks in different places, for example memory addresses 1000-1050, 2050-2125, ...


Draw the memory diagram of calloc function how it allocating the memory?

When calloc is called, it first allocates memory blocks equal to the product of the given number of elements and size of each element. It then initializes all bytes in the allocated memory to zero. The memory diagram would show a contiguous block of memory with its contents set to zero after the allocation.


What is the process of allocation of memory for an integer type variable?

To dynamically allocate memory, use the following function (stdlib.h I believe): int *variable1 = malloc(sizeof(int));