(Modern compilers are smart about caching header data, but there are limits to what they can do.) ![]() A few innocent #includes sometimes expand to megabytes of header data once all the recursive inclusion is resolved. Expanding the #includes in such a project can be both scary and enlightening. And the stuff includes even more stuff - completely unrelated to the original problem. Most of the time this happens indirectly. We want to minimize the dependencies, so that changes in one file don’t have a big impact on other files.īad physical design is easy to spot. Just as with logical design, the primary goal of physical design is to reduce coupling. It is related to, but separate from, the logical design which refers to how the components of the system are connected and interact. cpp files and how those files are organized on disk - which files include which others, etc. To begin with, if you are not familiar with the term, the physical design of a C++ project refers to how the code is broken down into individual. ![]() Let’s unpack why we made this decision and how we make it work. (Except for and, we make exceptions for those to get the standard uint32_t and bool types.) In other words, header files cannot depend on other header files for the types they need. Header files (.h) cannot include other header files
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |