python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
What happens to malloced data in a struct in C when it is assigned to another variable?
Let's say I have a structure named "example" which has a member named data which stores data allocated on the heap:
typedef struct _EXAMPLE
{
signed char *data;
size_t size;
} exampl...
William Ryman
Votes: 0
Answers: 3
Why does GCC -O0 usually store the first local variable at [ebp-4], and why not always?
I am currently learning reverse engineering using the x86 Instruction Set and had the general understanding that the first local variable of a function is always stored at the address [ebp-4]. However...
imperfect perfectionist
Votes: 0
Answers: 1
what is the use of attaching static data along with a program when it is loaded on the main memory?
When the operating system loads Program onto the main memory , it , along with the stack and heap memory , also attaches the static data along with it. I googled about what is present in the static da...
Prakhar Shankar
Votes: 0
Answers: 1
Assembly: Why there is an empty memory on stack?
I use online complier wrote a simple c++ code :
int main()
{
int a = 4;
int&& b = 2;
}
and the main function part of assembly code complied by gcc 11.20 shown below
main:
push rbp...
Used To Love
Votes: 0
Answers: 2