Issue |
83122
|
Summary |
OOM when compiling a medium size c++ code
|
Labels |
new issue
|
Assignees |
|
Reporter |
niXman
|
hello,
I was just trying to compile my hobby project: https://github.com/niXman/cmdargs
I was unpleasantly surprised that when using `clang` all available 14Gb memory was used, while when using `GCC` only 1.2 Gb of memory was used!
at the same time, the same code when using clang takes three times longer to compile!
clang: 1m24,296s
gcc: 0m31,485s
cmdline used:
clang: time clang++15 -std=c++17 main.cpp -I../include -omain
gcc: time g++ -std=c++17 main.cpp -I../include -omain
clang version:
> Ubuntu clang version 15.0.7
> Target: x86_64-pc-linux-gnu
> Thread model: posix
> InstalledDir: /usr/bin
gcc version:
> g++ (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0
> Copyright (C) 2022 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions. There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
any thoughts?
best!
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs