C++ Logo

std-proposals

Advanced search

Re: [std-proposals] Freestanding std modules

From: Bo Persson <bo_at_[hidden]>
Date: Sun, 30 Jun 2024 17:22:17 +0200
On 2024-06-30 at 15:39, Ville Voutilainen via Std-Proposals wrote:
> On Sun, 30 Jun 2024 at 16:30, Bo Persson via Std-Proposals
> <std-proposals_at_[hidden]> wrote:
>>
>> On 2024-06-30 at 14:28, Marcin Jaczewski via Std-Proposals wrote:
>>> On GCC mailing list I notice email:
>>> https://gcc.gnu.org/pipermail/gcc/2024-June/244252.html
>>> Aside of misguided author (profanities & sending it to gcc instead of here)
>>> some of his concerns could be valid.
>>>
>>> Example: there is a freestanding version of the standard library module?
>>> Or how to reduce blot that `import std;` can cause even if I only
>>> use part of it like `std::vector` or `std::unique_ptr` but
>>> I do not plan touching `std::regexp` or io.
>>>
>>> Maybe something like `import std.core;` (like MSVC did) or
>>> use import headers like `import <iostream>;`?
>>>
>>> Or is this simply a QoI issue and the committee does not need to consider
>>> how big is binary after `import std;`?
>>
>> Is this a real problem, or just an upset user?
>>
>> I don't have your embedded compiler, so tried this on Visual Studio:
>>
>> import std;
>>
>> int main()
>> {}
>>
>> and get an 11 kB exe-file.
>>
>> Is that too much bloat?
>
> If you remove that import, how large is your exe-file?

Exactly the same. :-)

Received on 2024-06-30 15:22:28