I'm writing a program at the moment (on Windows 10, using Microsoft C++ 2019), where a debug build generates about a hundred megabytes of symbol files; this is going to increase as the amount of code becomes larger. Considering a debug build is a very frequent event, this could actually make a significant dent in the lifespan of the SSD.
It technically makes no sense for this to happen; these are throwaway files, and I have 32 gigabytes of RAM; they should be just kept permanently in RAM and never written to disk. The ideal would be if there was a way to tell Windows, make these throwaway files appear in the file system for software compatibility, but don't actually write them to disk, just keep them in RAM. Is there a way to do anything like that? I've never heard of such; the closest I've ever heard of is writeback caching, which wouldn't actually help, because the files still get written, just slightly later; it assumes the problem you are trying to solve is speed, but that's not the issue here.
Minimize writes to SSD disks with Windows 7 discusses the issue with other kinds of data, but most of the answers seem to be '... put X on a different partition'. That sounds like the people writing the answers were assuming the machine contains a spinning disk as well as an SSD? I did see one suggesting plugging in an external SSD, presumably to act as, well, a sacrificial SSD; I can see that working in principle, but it seems suboptimal to treat expensive, high-performance components as sacrificial to a process that shouldn't be happening in the first place.
Is a RAM disk a necessary and sufficient solution? Do those still keep their contents in physical RAM?