Questions tagged [stack-frame]

Use stackframe for questions related to debugging unterminated function calls.

A stackframe is a list of functions that have been invoked but have not yet returned a value

References

291 questions
-2
votes
2 answers

How can RBP point any number of local_variable or parametes?

I am novice in assembly (NASM). I know that RBP points to any parameters and local variable in function. It’s implemented by simple offset. If we wanna get first variable we rbp-4, if we wanna get fist parameter we add to rbp 4. But how can we do…
Ruslan
  • 51
  • 5
-2
votes
2 answers

Stack frame in memory after function returns

What happens to the stack frame after a function is called? I have a function that returns the address of a local variable - should I be able to do that, or is the stack frame destroyed after the function is returned? Here is my code - I expected to…
-2
votes
1 answer

Need of Stack Frames, ARM

Can someone explains why exactly we need Stack frames? What is its core purpose? What are its benefits? Isn't just one Stack Pointer sufficient to just push and pop elements from stack and not to use any frame? Here Stack Frames, it is mentioned…
Aimal
  • 621
  • 1
  • 7
  • 13
-2
votes
1 answer

Memory allocation in stack and text?

Consider the following definition: char A[]="xyz"; As we all know that A is allocated 4 bytes memory in the stack section when A is defined as above. At the same time will the address of "xyz" be stored in the code section?
-3
votes
1 answer

Error: A JNI error has occurred, please check your installation and try again Exception in thread "main" java.lang.VerifyError

public class Test { public static void test() { Object object4,object5,object6,object7,object8,object9,object10,object11,object12, object13,object14,object15,object16,object17,object18,object19,object20,object21, …
BHAWANI SINGH
  • 729
  • 4
  • 8
-4
votes
1 answer

Java Heap and Stack

I have problems with the following exercise since I couldnt attend the lesson where the topic has been explained. I tried to help myself with some videos on youtube, but it didn't really make me confident about the result I had. I would be very…
1 2 3
19
20