dn6
asked on
Number of bytes allocated for char arrays by subl %esp seems much too high (in linux 2.4, gcc 3.2.2)
Hi!
I noticed that when I declare a buffer of, for example, char[5], the assembly code generated by gcc actually allocates a much larger buffer, in this case 24 bytes:
subl $24, (%esp)
How can this be explained?
I noticed that when I declare a buffer of, for example, char[5], the assembly code generated by gcc actually allocates a much larger buffer, in this case 24 bytes:
subl $24, (%esp)
How can this be explained?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
yes, it depends on type, processor, operating system and even compiler.
dn6, any feedback please?