Sujet : Re: Suggested method for returning a string from a C program?
De : bc (at) *nospam* freeuk.com (bart)
Groupes : comp.lang.cDate : 24. Mar 2025, 21:13:27
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vrsed8$1ldng$1@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
User-Agent : Mozilla Thunderbird
On 24/03/2025 18:27, Chris M. Thomasson wrote:
On 3/24/2025 8:44 AM, Scott Lurndal wrote:
David Brown <david.brown@hesbynett.no> writes:
On 24/03/2025 15:07, bart wrote:
On 24/03/2025 11:51, David Brown wrote:
On 23/03/2025 02:34, bart wrote:
>
>
C programmers are typically not bothered about build times because a)
their build times are rarely high (Scott's projects are C++), and b),
they are willing to sacrifice high build times if it means more
efficient run times.
>
C++ and C aren't that far apart. I work with two codebases,
one in C++ (several million SLOC) and one in C (linux kernel).
>
I'd like to see Bart (try to) compile linux with his C compiler.
That would be a good test of his tool base.
It would be a good test of anyone's. Maybe even of MSVC - could that build Linux?
This is after all a project which expects to be built with gcc, and for which gcc has doubtless been tweaked to be able to build. Any other tool would have to be compatible, and even then, extra support may be needed:
"The Linux kernel has always traditionally been compiled with GNU toolchains such as GCC and binutils. Ongoing work has allowed for Clang and LLVM utilities to be used as viable substitutes"
Anyway I can tell you know that, even if I had the faintest clue how to go about the job even with gcc, my compiler wouldn't work, for a long list of reasons, not least that it produces Windows executables that run under Windows.
What's happening here is that SL is in a job where he has to haul huge amounts of stuff using a fleet of trucks, and he's asking how well the upstart with the self-built sports car could cope with the same task.