Deutsch   English   Français   Italiano  
<vrsed8$1ldng$1@dont-email.me>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail
From: bart <bc@freeuk.com>
Newsgroups: comp.lang.c
Subject: Re: Suggested method for returning a string from a C program?
Date: Mon, 24 Mar 2025 20:13:27 +0000
Organization: A noiseless patient Spider
Lines: 41
Message-ID: <vrsed8$1ldng$1@dont-email.me>
References: <vrd77d$3nvtf$2@dont-email.me> <20250320171505.221@kylheku.com>
 <vrif1v$c9ev$3@dont-email.me> <8734f7rw7z.fsf@nosuchdomain.example.com>
 <vrjjvb$1esjh$1@dont-email.me> <87tt7mqk7w.fsf@nosuchdomain.example.com>
 <vrkvt5$2k04q$2@dont-email.me> <87cye9afl0.fsf@nosuchdomain.example.com>
 <vrmckn$114k$1@dont-email.me> <871puoag2q.fsf@nosuchdomain.example.com>
 <vrnoft$15f6n$1@dont-email.me> <vrrh0c$qila$1@dont-email.me>
 <vrrouo$11up7$1@dont-email.me> <vrrqe0$12u8q$1@dont-email.me>
 <e5fEP.66586$D41.13132@fx45.iad> <vrs86s$1faio$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 24 Mar 2025 21:13:28 +0100 (CET)
Injection-Info: dont-email.me; posting-host="cd36ac246702b474a1548a794b73ffc4";
	logging-data="1750768"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1/48OCe4KrdjX9fS5vKN4Yl"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:tbX2H3MWM6ok53+xNYCNlnZD9F0=
Content-Language: en-GB
In-Reply-To: <vrs86s$1faio$1@dont-email.me>
Bytes: 3289

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.