Path: chuka.playstation.co.uk!scea!sumner From: sumner@austin.metrowerks.com (Joel Sumner) Newsgroups: scea.yaroze.programming.codewarrior Subject: Re: Initializing the heap Date: Mon, 03 Nov 1997 09:32:15 -0600 Organization: Metrowerks Lines: 26 Message-ID: References: <01bce566$fdb8c1a0$a5bf43ce@wkwerner> <34596659.40D5@charlie.cns.iit.edu> <01bce5de$a390af80$6fbf43ce@wkwerner> <3459c0fd.1431258@news.playstation.co.uk> <01bce639$f3382a80$78bf43ce@wkwerner> NNTP-Posting-Host: 198.214.227.142 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Newsreader: Yet Another NewsWatcher 2.4.0 In article <01bce639$f3382a80$78bf43ce@wkwerner>, "Wayne K. Werner" wrote: >Must disagree with you there. Yes, the heap is implemented by >library calls, but these are part of the required ANSI C stdlib, >and in no ANSI C compliant compiler that I have ever seen is >the user required to init the heap. .... > Having to do this removes compliance for no good >reason that I can see. Just in case you were curious why it was done, it was at Sony's request that we move init_heap into main(). init_heap() remains in the startup code when the C++ compiler is active. If you wish to change this behavior, simply remove the #ifdef _cplusplus in _psstart.c and the "old" behavior for CW-Net Yaroze Release 1 will return (just be careful if you give the sources to someone else). I knew this behavior could trip a lot of people up, hence the #pragma warning which was placed in the _psstart.c file. -Joel -- PlayStation Development Tools Dude Metrowerks