Похожие чаты

Is there any way to reduce or limit memory usage

of msvc on compiling cpp code?

19 ответов

4 просмотра

if you reduce the memory usage it will take longer to compile, right?

Déjà vu- Автор вопроса
Alejandro
if you reduce the memory usage it will take longer...

nope, depends on available ram. your main enemy is disk io. for example if a one core compilation stay on ram will be faster that 16 core full speed compilation which involve virtual memory.

Déjà vu
nope, depends on available ram. your main enemy is...

If you don’t have enough ram it will attempt to use IO, but it uses the ram it requires. I don’t think reducing the memory usage and compute more will be faster than the IO penalty

Déjà vu- Автор вопроса
Alejandro
If you don’t have enough ram it will attempt to us...

in my case is faster. even memory compression is faster in my hw

Déjà vu- Автор вопроса
Déjà vu- Автор вопроса
Manav | avoid unnecessary messaging me
-MP1 didn't work?

that's for cl not the msbuild, with cl directly it needs a lot out of sln configs

Déjà vu
that's for cl not the msbuild, with cl directly it...

yeah but I am sure you can pass commands to the compiler directly

Déjà vu
that's for cl not the msbuild, with cl directly it...

found this, https://github.com/Microsoft/checkedc-clang/wiki/Parallel-builds-of-clang-on-Windows#msbuild hmm, it uses CL_MPCount

Déjà vu- Автор вопроса
Manav | avoid unnecessary messaging me
found this, https://github.com/Microsoft/checkedc-...

aw so this way you can pass commands to cl via msbuild, interesting, thanks

Déjà vu
aw so this way you can pass commands to cl via msb...

That's specific to -MP. Let us know how it works out for you :)

Déjà vu- Автор вопроса
Déjà vu- Автор вопроса
Manav | avoid unnecessary messaging me
found this, https://github.com/Microsoft/checkedc-...

i've tested inside the ide config before but did not work. i will test the commandline soon and tell you.

Déjà vu
i've tested inside the ide config before but did n...

oh, if the ide config didn't work, then i doubt command line arguments will

Déjà vu- Автор вопроса

it seems that ue4 source code in windows has a complex undocumented config system, their sln works internally with make files and some custom selfdocumented configs in c#. maybe that's why msbuild config does not work. still i did not find a unified make file and in their c# configs there is nothing about compilation threads/processes. if you know something about their config system please let me know.

Похожие вопросы

Обсуждают сегодня

Скажите, можно ли как-то "переместить" динамический массив из одной переменной в другую? Скажем, переместить из TList<> в TArray<>. Именно переместить, а не скопировать. Если ...
Eugene Krasnikov (ᴊɪɴ x)
36
Hi everyone! I have a two-folded message to share today. First: updates and news, as we are being asked for those. We still want to go like we did the last 6 years: we w...
Marten | Unibright.io
31
комрады, че-та лыжы не едут var tmpFont: TFont; begin tmpFont:= TFont.Create; try case rgFontColor.ItemIndex of 0: tmpFont.Color:= clWindowText; 1: tmpFo...
Ed Doc
34
М-да. Почему бы просто со stringlist не работать?
Michael Longneck
18
VIP-310 Set RedStone as the MAIN oracle for BTC and BNB on BNB Chain Summary If passed, this VIP will perform the following actions: - Configure RedStone as the MAIN oracle...
Venus Announcements
1
Интересно, нет ли какого-то способа получить из dll не адрес самой метки, а адрес со смещением?
The Bird of Hermes
54
monero is the only tool for privacy and currency . why would we destroy it?
😎
13
🔍 Launch of Sentinel dVPN's Native Explorer 🎉 The Sentinel Growth DAO is thrilled to announce the launch of Sentinel dVPN's new native blockchain explorer! Now anyone can div...
Joey | BadgerBite Joeyy
1
Можно вообще написать: Person fName' lName' age'. Тогда действительно имена полей потребуются лишь в строковом виде, чтобы эти fName' и т.д. достать :-) Но разве для этого нуж...
Михаил
8
Whoa, did you guys see this FUNToken Seed Grant announcement? 💸
Noah Noure
37
Карта сайта