I am allocating space with ::operator new( sizeof(T) * count).
The 1st call returns an address 0x742f30 and the 2nd returns 0x7f2ef0000d60. I am now confused about the huge difference.
My question: Is this normal that the returned addresses can differ that much?
Update:
SLES 11 SP3 VM on XenServer
gcc 4.9.3
10 GB RAM
Update:
Because some people suspected a wrong output format. I display the returned address by the new command with the same printf format. I copied the pointer values to this question by copy and paste and check them twice. They match the output from my Memory Allocator.
Aucun commentaire:
Enregistrer un commentaire