Re:Show HN: Vomitorium – all of your project in 1 text file
by leovailati on Tuesday September 10, 2024 @09:01AM
(#41500368)
We use a C compiler for embedded systems that doesn't support link time optimizations (unless you pay for the pro version, that is). I have been thinking about some tool like this that merges all C source files for compilation.
[ Parent
| on HN ]
Re:Show HN: Vomitorium – all of your project in 1 text file
by rramadass on Tuesday September 10, 2024 @09:56AM
(#41500801)
Unless i am understanding you wrong, you could easily do this by #including all your a.c, b.c etc. into one file input.c and feeding that to the compiler.
We did this for a home-grown SoC with a gcc port for which there was no linker.
Re:Show HN: Vomitorium – all of your project in 1 text file
by professoretc on Tuesday September 10, 2024 @12:33PM
(#41502644)
That's called a "unity" build, isn't it? I was under the impression that it was a relatively well-known technique, such that there are existing tools to merge a set of source files into a single .c file.