Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It's not uncommon in game development to do 'unity builds', by basically including all code to get a single compilation unit. It can reduce build times and the compiler has more options for optimizations (inlining, mostly). This doesn't require putting everything in header files, just including the .c files gets you the same result. But if you're doing unity builds the distinction between header files and source files is basically reduced to the file extension anyway...


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: