News for hackers. Stuff that matters.
Re:“Modern” C++ Lamentations by jcelerier on Friday December 28, 2018 @01:49PM (#18778614)
I don't think that this is a very meaningful comparison at these sizes, because it entirely depends on your target. Just compiling a "foo.c" file with "int main() { }" for sole content through "gcc -Os" produces a 16kb executable on my linux machine, but I know very well that the exact same compiler will produce something much smaller if I compile for, say, a bare metal AVR target because the ELF file format has a lot of fluff.
Re:“Modern” C++ Lamentations by gumby on Friday December 28, 2018 @03:13PM (#18779110)
> because the ELF file format has a lot of fluff.

I wouldn't call it fluff: even assuming no debugging info (which you won't have in your avr object file) it has info needed at runtime (program start time) such as where to load what into memory, how much initial uninitialised memory to allocate when starting up, etc. It all gets used.