I don't get it, if you can modify the code, do so and get on with life?

Why are you trying to construct the past?

Some compilers may give you a detailed map file of where everything is, but that depends entirely on the tool chain you have. For that, you would have to read the manual.