1 votes 1 votes What is runtime enviornment (Is it do anything more than running the program?)? Where Stack Pointer generally needed?Why it is needed runtime and not compile time? Has it any link with interrupts? Compiler Design compiler-design runtime-environment + – srestha asked Sep 10, 2018 • recategorized Aug 24, 2022 by Shubham Sharma 2 srestha 795 views answer comment Share Follow See all 4 Comments See all 4 4 Comments reply Shaik Masthan commented Sep 10, 2018 reply Follow Share Runtime environment means what is values of variable (static,local or global etc.) at that specific time. At compile time you did not run the code, therefore stack pointer doesn't need at that time. (Stack means Stack Memory.) let see the following code. main() { ............. f1(); ................ f2(); ............ } f1() { ....... f2() ....... } f2() { ....... } lin this code execution starts at main, after some time it will goto f1(), Then how it would be comeback to main() again? due to use of stack pointers only. 2 votes 2 votes srestha commented Sep 11, 2018 reply Follow Share but why "environment" term comes for runtime and not for compile time? 0 votes 0 votes Shaik Masthan commented Sep 11, 2018 reply Follow Share i hope, we can use the term with compile time also i am not sure! 0 votes 0 votes anonymous commented Oct 9, 2018 reply Follow Share @srestha Run time environment is nothing but when we are supposed to run a programm then at that time what support our program is needed from operating system . 0 votes 0 votes Please log in or register to add a comment.