English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Language > Coders. C/C++

 
 
Thread Tools
Old 28 December 2018, 22:40   #1
jotd
This cat is no more
 
jotd's Avatar
 
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?
jotd is offline  
Old 29 December 2018, 00:32   #2
PeterK
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
PeterK is offline  
Old 29 December 2018, 10:31   #3
Leffmann
 
Join Date: Jul 2008
Location: Sweden
Posts: 2,269
Both VBCC and SAS/C will do this as part of the cleanup.
Leffmann is offline  
Old 29 December 2018, 11:58   #4
phx
Natteravn
 
phx's Avatar
 
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.
phx is offline  
 


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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 06:46.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.09765 seconds with 15 queries