• 2 Posts
  • 32 Comments
Joined 1 year ago
cake
Cake day: June 12th, 2023

help-circle








  • Lauchmelder@feddit.detoProgrammer Humor@lemmy.mlTrue Story
    link
    fedilink
    Deutsch
    arrow-up
    2
    arrow-down
    5
    ·
    8 months ago

    The reason is that header files are pretty much copy/pasted into your c files when you include them. so the code in them keeps getting recompiled for every c file, which drastically increases overall build times. If you only declare in the header and have one c file implementing the functions you compile them only once.