4 ms·
> C compile times suck Can I ask you what you're comparing with? I can compare with C++, Scala and Go. The first two are horrible in that department when compa
by geoka9 14y ago
> C compile times suck
Can I ask you what you're comparing with?
I can compare with C++, Scala and Go.
The first two are horrible in that department when compared with C. Go's compiles are blazingly fast.
- jparishy 14y agoI'm not really comparing it to anything, just speaking from experience of having waited many hours waiting for C programs to compile in the past.
- ghshephard 14y agoIsn't the job of your Makefile to require recompilation of only those source files that have changed? I just did a random google of "how long to compile linux kernel" and came across this: https://plus.google.com/u/0/+LinusTorvalds/posts/6BxnSisp8fU https://plus.google.com/u/0/+LinusTorvalds/posts/6BxnSisp8fU One nice excerpt: "Total build time after make clean is about 1min, give or take 10secs. `touch include/linux/version.h` is 6 seconds to rebuild. Just doing a rebuild without touching anything is 2.7secs. For a defconfig, it does build a godawful amount of modules :^) 'allnoconfig; make' is 16 seconds..."
- infinite8s 14y agoYou've probably never tried compiling the linux kernel back in the late 90s with a top of the line machine (hint - gcc was slow, it would take over 35 minutes or so to compile from scratch) ;)