Comments on: Structure of a C-Program in Memory | How Heap,Stack,Data and Code segments are stored in memory? /c-language-programming-tips/structure-of-a-c-program-in-memory-how-heapstackdata-and-code-segments-are-stored-in-memory/ Because one technology can make another technology rich Fri, 25 May 2012 23:21:19 +0000 hourly 1 http://wordpress.org/?v=3.3.2 By: JIGAR PATEL /c-language-programming-tips/structure-of-a-c-program-in-memory-how-heapstackdata-and-code-segments-are-stored-in-memory/#comment-533 JIGAR PATEL Thu, 15 Mar 2012 04:40:04 +0000 /?p=735#comment-533 here you are talking about code segment ...then i have already said this segment can only read by function pointer not by data pointer. for taking dump of RAM you need to use data pointer so in this segment this will cause "undefind behaviour" here you are talking about code segment …then i have already said this segment can only read by function pointer not by data pointer. for taking dump of RAM you need to use data pointer so in this segment this will cause “undefind behaviour”
JIGAR PATEL recently posted..How to access/unblock songs.pk in india? My Profile

]]>
By: Void /c-language-programming-tips/structure-of-a-c-program-in-memory-how-heapstackdata-and-code-segments-are-stored-in-memory/#comment-532 Void Wed, 14 Mar 2012 21:05:54 +0000 /?p=735#comment-532 Very nice! Keep em' comming. You write that: "Another important information to note here is that the system may consider this area as read only memory area and any attempt to write in this area leads to undefined behavior.". Q: How about read? Would read result in undefind behaviour? (Direct memory read). Can one, with correct privilegies, create a pointer, start at address one, and dump entire RAM content? Very nice! Keep em’ comming.

You write that: “Another important information to note here is that the system may consider this area as read only memory area and any attempt to write in this area leads to undefined behavior.”.

Q: How about read? Would read result in undefind behaviour? (Direct memory read). Can one, with correct privilegies, create a pointer, start at address one, and dump entire RAM content?

]]>