3 ms·
Wouldn’t it make sense to make the BMI file to be compiler neutral? I’m not sure there is an actual need for them to be that intimately tied to the compiler. Wh
by rbanffy 3y ago
Wouldn’t it make sense to make the BMI file to be compiler neutral? I’m not sure there is an actual need for them to be that intimately tied to the compiler. What information that’s impossible to recreate from the equivalent of a header file is required?
- layer8 3y agoI think they are just an optimization, like precompiled header files. Theoretically they could probably take the form of C++ module interface units without implementation, but that wouldn't gain you that much in terms of compilation time.
- stabbles 3y agoYeah, that'd make a lot of sense. With Fortran mod files I believe it's not even backwards compatible for a single compiler: gfortran. If it's not standardized, you end up recompiling the world, which defies the point.
- humanrebar 3y agoThere is a proposal for this: https://github.com/microsoft/ifc-spec https://github.com/microsoft/ifc-spec Only Microsoft implements that so far. I gather EDG (which powers IntelliSense) has been at least researching support for consuming IFC files. I'm not aware of anyone sponsoring work in Clang or GCC to add IFC support.