C++ Logo


Advanced search

Re: [isocpp-ext] Can we expect that all C++ source files can have the same suffix?

From: Gabriel Dos Reis <gdr_at_[hidden]>
Date: Mon, 25 Apr 2022 15:43:53 +0000
Please explain that slowly for the slower of us, so we can follow your conclusion.

-- Gaby

From: Ext <ext-bounces_at_[hidden]> on behalf of René Ferdinand Rivera Morell via Ext <ext_at_[hidden]>
Sent: Monday, April 25, 2022 6:48:35 AM
To: Evolution Working Group mailing list <ext_at_[hidden]>
Cc: René Ferdinand Rivera Morell <grafikrobot_at_[hidden]>; Peter Dimov <pdimov_at_[hidden]>; Daniel Ruoso <daniel_at_[hidden]>; ISO C++ Tooling Study Group <sg15_at_[hidden]>; Tom Honermann <tom_at_[hidden]>; Nathan Sidwell <nathan_at_[hidden]>
Subject: Re: [isocpp-ext] [SG15] Can we expect that all C++ source files can have the same suffix?

On Mon, Apr 25, 2022 at 8:40 AM Iain Sandoe via Ext <ext_at_[hidden]<mailto:ext_at_[hidden]>> wrote:

> On 25 Apr 2022, at 14:36, Peter Dimov via SG15 <sg15_at_[hidden]<mailto:sg15_at_[hidden]>> wrote:
> Daniel Ruoso wrote:
>> Em seg., 25 de abr. de 2022 às 09:06, Peter Dimov <pdimov_at_[hidden]<mailto:pdimov_at_[hidden]>>
>> escreveu:
>>> All that's also true without modules, but we still make it possible for
>>> c++ hello.cc
>>> to produce a working hello world executable
>> FWIW, I'd be on board with a proposal for a "trivial build system"
>> interface to be supported in various toolchains with the same command line
>> and options. Maybe we can even convince our toolchain vendors to include
>> such a tool. I think focusing on the compiler executable specifically as the one
>> having to implement that is a mistake.
> That's also something we already have, because c++ in the above is
> typically the "compiler driver" executable, which invokes the compiler front
> end, the compiler back end, [the assembler], and the linker.

Agreed, but the driver typically makes decisions about forming commands
based on flags provided and suffixes to files.

(at least for the two I am familiar with) it does not do dependency analysis
nor does it have any need to parse the source.

I suspect it would be better to place the ‘trivial build’ system as a separate
entity (perhaps invoked by the driver) rather than upgunning the driver to
have those properties.

It's irrelevant, to this discussion, where you place such functionality if ultimately the compiler driver is the one providing the UI that people use.

-- René Ferdinand Rivera Morell
-- Don't Assume Anything  -- No Supone Nada
-- Robot Dreams - http://robot-dreams.net<https://nam06.safelinks.protection.outlook.com/?url=http%3A%2F%2Frobot-dreams.net%2F&data=05%7C01%7Cgdr%40microsoft.com%7C8fc85899c2614857956208da26c25720%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637864913383385137%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=NG8lg9oKK7%2B4piEQLEoI%2BUvTQHtEv5y3jFTYRGVqL%2Fw%3D&reserved=0>

Received on 2022-04-25 15:43:56