Re:Things That Turbo Pascal Is Smaller Than (2011)
by lelanthran on Monday November 16, 2026 @02:33AM
(#50515033)
> There's no reason (other than laziness) why that should take more than 2k.
Well...
$ touch --help | wc -c
1580
Just the text for the help message compiled into `touch` is over 1.5kB.
It's not just laziness, it's also what the program needs to do, like (for example) print out all the options it supports (1.5kB), then parse those options, execute a different code path depending on what the user wants to do, etc.
If all you want to do is update the date or create a new empty file, I can write a very short program that does that, although the minimum program in C is around 16kB (hello world), so that's the minimum overhead needed to have a C program loaded by Linux.
Well...
Just the text for the help message compiled into `touch` is over 1.5kB.It's not just laziness, it's also what the program needs to do, like (for example) print out all the options it supports (1.5kB), then parse those options, execute a different code path depending on what the user wants to do, etc.
If all you want to do is update the date or create a new empty file, I can write a very short program that does that, although the minimum program in C is around 16kB (hello world), so that's the minimum overhead needed to have a C program loaded by Linux.