Answer the question
In order to leave comments, you need to log in
A big project in C. How to build a job so that it doesn't fill up with code?
Question for general development.
An acquaintance works in a project in pure C (in a team, of course). The number of lines is about 1,000,000 IMHO not very convenient for a pure C number of lines.
How would you work on such a project?
ZY At once I will make a reservation a question rather theoretical.
Answer the question
In order to leave comments, you need to log in
1) We divide into categories, each category - into its own folder. If necessary - more subfolders.
2) Transfer the common or old code to the library, include only .h + .lib
3) Use the version control system.
4) Introduce a limit on the number of lines per file, redistribute the code in such a way that there are no more than 1000 lines in one .c file (IMHO even 500 per s is already a lot.)
I would break the code into separate files depending on the functions. Well, Doxygen, of course.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question