C doesn't know anything about your processor, its type, or its cache, or anything other related to that.
If you want to access this data, you would need OS-level functionality that supports it (which could potentially be callable from C). You need to look at your OS, and potential other choices, to find out if they support it.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…