28 December 2018, 22:40 | #1 |
This cat is no more
Join Date: Dec 2004
Location: FRANCE
Age: 52
Posts: 8,168
|
Is there some compiler providing resource tracking for malloc/free/FILE* handles?
when using standard C libs, compilers could track down calls to malloc and fopen and such, and free when exiting.
Do such compilers exist? |
29 December 2018, 00:32 | #2 |
Registered User
Join Date: Apr 2005
Location: digital hell, Germany, after 1984, but worse
Posts: 3,366
|
I don't know about compilers with a tracking feature but maybe CodeWatcher can help you when your program is executed?
http://aminet.net/package/dev/debug/CodeWatcher |
29 December 2018, 10:31 | #3 |
Join Date: Jul 2008
Location: Sweden
Posts: 2,269
|
Both VBCC and SAS/C will do this as part of the cleanup.
|
29 December 2018, 11:58 | #4 |
Natteravn
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,496
|
I would even say any compiler with an ANSI/ISO-C compatible clib should do that. Otherwise it is broken.
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Best free file manager for managing retrogaming files on Windows | Leandro Jardim | Retrogaming General Discussion | 20 | 07 April 2018 21:27 |
ReSource - How to re-load ASM file? | Sim085 | support.Other | 19 | 26 April 2016 21:59 |
Free manuals: SAS C / Lattice Amiga C Compiler and WShell 2.0 | poohbear | MarketPlace | 0 | 05 April 2014 01:43 |
'Error: Not enough free memory' (Boot using .hdf file) | starwindz | support.FS-UAE | 3 | 22 July 2012 18:18 |
[SAS/C] Making malloc() allocate in fast RAM instead of chip RAM? | 8bitbubsy | Coders. General | 3 | 07 August 2011 07:06 |
|
|