|
From: Nicholas N. <nj...@ca...> - 2004-01-22 13:18:08
|
On Wed, 21 Jan 2004, Jeremy Fitzhardinge wrote: > One other nice thing to do would be to drop all of stage2's use of > malloc and fprintf(), and use the Valgrind equivalents (esp printf, > since we want to report errors in a consistent way). Certainly mixing > the use of VG_(arena_malloc)/malloc in vg_main just looks very strange. Avoiding malloc() is tricky. We can't use VG_(malloc)() (or VG_(arena_malloc)()) until the tool is loaded, and the redzone size is set. But quite a lot of things have to happen before then (eg. selecting the tool with --tool, loading the tool, etc.) fprintf() can probably be avoided more. N |