[Dev-C++] RES: RES: RES: Question about software design
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: <and...@su...> - 2007-11-21 15:48:26
|
Sorry, but I didn´t understand the stack realease sfuff... -->Suppose I make a lot of malloc´s during the execution of my program. Then I finish the execution (without "freeing" the memory). -->Does all the "malloced" memory return to the Operating System and can be considered available again? Thank you! Andre -----Mensagem original----- De: Rafael Menezes [mailto:so...@gm...] Enviada em: quarta-feira, 21 de novembro de 2007 10:02 Para: André Macário Barros Assunto: Re: [Dev-C++] RES: RES: Question about software design Hi André. I'm not asking about some particular language skill's, and if you are using ANSI C, that is great. Not much people see that ANSI C is faster than anything else (with one exception to assembly, but assembly... oh joy...), and can be used in many places of the code in order to increase speed and memory usage. Keep using that everywhere it fits. About that automatic memory release, well... the memory will be cleaned up in most cases, but you cant count on that. Sometimes (each time you ask for a new memory space that is bigger than the actual remaining stack on the SO, reserved to your application), you can just see your memory leaking and don't have a thread to kill and stop this beast. The normal memory management functions supplied with C compilers do not provide garbage collection. free and calloc still can be useful in your code. Regards Rafael No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.503 / Virus Database: 269.16.2/1142 - Release Date: 20/11/2007 17:44 |