Shobaki, Ghassan wrote: > In some optimization passes it may be useful to know the programming > language that we are compiling. Is there a way to get that information > in the middle end and back end?
Hmm. I would rather that the amount of language-specific optimization were kept to an absolute minimum. I maintain the Java front-end, and the fact that the optimizers I use work the same way for C makes me very happy. I wouldn't do it if I were you. Better to find a way to describe what you need to do in a langauge-independent form. Andrew.