Dr Smith C development
Colin Ferris (399) 1813 posts |
What does Dr Smith C Dev set of progs do? Is there a demo / test of it? thanks |
Rick Murray (539) 13839 posts | |
Piers (3264) 43 posts |
Indeed. It’s essentially Google’s Address sanitiser. You compile the code with a special flag and Norcroft generates function calls immediately before every memory access (ie a branch before every load and store instructions). Dr Smith’s uses that function call to log the access against every memory allocation/memory free to ensure that it is a valid access. I’ve no idea why Norcroft had that feature – it was in for many years before DrSmith’s was written. As Rick pointed out in another thread, none of us currently know if it’s suitable for 32-bit code. There’s also a profiler, but I never really used that. |
Colin Ferris (399) 1813 posts |
Does this mean that ‘C’ Norcroft can be made to produce a file of memory accesses – that Dr Smith can make sense of? |
Rick Murray (539) 13839 posts |
What’s the secret incantation? |
Sprow (202) 1158 posts |
You compile the code with a special flag and Norcroft generates function calls immediately before every memory access It hasn’t changed since you last asked about it in 2020, though it’s now on page 123 of the manual because it got a bit fatter. |
Steve Pampling (1551) 8170 posts |
A sign of its age? |
Rick Murray (539) 13839 posts |
I am hyper-observant, I notice everything. That, unfortunately, is coupled with a really lousy memory with a broken input filter. Ask me what my evening meals were Monday to Thursday. I pretty much eat the same things so there’s maybe a choice of a half dozen options. Ask me what my evening meals were Monday to Thursday. <facepalm> |
Colin Ferris (399) 1813 posts |
Are the Dr Smith progs 26bit only? I see the progs on CJE site – are they on floppies? |
Steve Pampling (1551) 8170 posts |
Plus, it’s a reference to the [gap] period As in the sequence, 2018, 2019, [gap], 2021, 2022… |