Re: [Dev-C++] RES: RES: RES: Question about software design
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Fernando L. <fer...@gm...> - 2007-11-21 19:07:25
|
Be careful with programming small processors like the PIC, they do not have enough stack depth to support deeply nested calls or large argument lists. = I wouldn't recommend using C++, stick to C. And generally, there is no "operating system". Best regards, Fernando On Nov 21, 2007 3:47 PM, Pink Boy <da...@ya...> wrote: > Andr=E9 Mac=E1rio Barros sez, > > > Sorry, but I didn=B4t understand the stack realease sfuff... > > Local variables are generally allocated on the functions stack > frame. Once you return from a function the local variables are no > longer valid. A pointer to a local variable is no longer valid > once you've returned from the function. Thus you need to take a > lot of care when referencing local variables via pointers. > > > -->Suppose I make a lot of malloc=B4s 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? > > With Winders, probably. Other OS's probably not. The real issue is > that not keeping track of memory that has been allocated via malloc > is bad programming practice as it leads directly to memory leaks. > > Mr Foo > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > --=20 Fernando Lichtschein li...@fi... |