| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | How is memory handled? |
Hello Neil! Replying to a message of Neil Heller to Darin McBride: NH>> char * foo[] = "For whom the bell tolls"; DM>> Who said it was heap memory? The string "For whom the bell DM>> tolls" is not on the heap, nor on the stack. It is in read- DM>> only memory in the data segment of your executable, NH> Ahhh... I had forgotten that, thank you. NH> If there were more than one instance of the program running at a time, NH> would the actual string need to be duplicated for each instance? Depends on the OS, but generally, no, each instance would share the same read-only memory as the rest of the instances. Darin ---* Origin: Tanktalus' Tower BBS (1:250/102) SEEN-BY: 633/267 270 @PATH: 250/102 99 10/345 379/1 633/267 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.