GCC optimization and speedup capabilities
Heime via Gcc-help <[email protected]> Tue, 19 May 2026 22:41:16 +0000
| Newsgroups | gmane.comp.gcc.help |
|---|---|
| Message-ID | <tza_G6Al-iXMnXyic_I_4kXR266iS5ARjnTqxmj1T5Z02tVDi9EyIpcsqm2CmMIOmzw2DBAjaqZTCWCAWaVYfzsu3zRfBrR7V-nKfTTJJ-s=@protonmail.com> |
GCC is capable of performing a wide range of automatic optimizations=20 to improve code execution speed, and it does include features for=20 automatic parallelization of loops. Although I can add explicit code to use threads and parallel processes, is the gcc and the OS capable of using multiple threads and available=20 cores even when not explicly coded by the developer. GCC can add optimisations for a program automatically. Is it capable of taking advantage of multiple threads and available cores, without the developer having to code them on a single machine?