You are not logged in.
From "cat /etc/fstab" I see that /tmp is already a ram disk. This means gcc can compile more quickly that it would otherwise. But are there some other ways to speed up compilation, on the operating system level, without touching source files or adding more capable hardware?
Offline
What does /tmp being a ram disk have to do with gcc's speed?
Compiling in /tmp will be faster - but that would be true of any compiler or any other process that is reading and writing files. Compiling anywhere else will not benefit from a /tmp ram disk.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Incidentally, you don't need /tmp in your fstab any more, assuming you're up-to-date and using systemd.
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
gcc uses /tmp for temporary files, if the TMPDIR environment variable is not set. This makes it use the ram disk.
Offline
BTW: How to get up to date and use systemd?
Offline
BTW: How to get up to date and use systemd?
Seriously? First of all, please do your own research. Second, the first part of your question I suspect might just be trolling. How are you using Arch Linux and do not know how to use pacman? If the first part of the question is directly related the the second part (ie. How do I update to systemd?) then again, do your own research. This question/issue has been frton and center in the Arch community for the past four months. There is a wiki page and numerous threads concerning this issue.
Do some searching or click <redacted>. If you have issues for something specific then come back and ask. Don't be a help vampire.
Mod Edit: Removed link to pornography. [ewaller]
Last edited by ewaller (2012-12-09 03:34:55)
Offline
gcc uses /tmp for temporary files.
Thanks, I wasn't aware of this - I'll have to go do a bit of reading up.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
What does pacman have to do with gcc? It merely manages pre-built binaries. Apparently you don't know the answer as regards speeding up the compile times.
Offline
WonderWoofy: You have been around long enough to know better than to pull something like that. Consider yourself warned.
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way
Offline