←back to thread

232 points pjmlp | 1 comments | | HN request time: 0.208s | source
Show context
vkaku ◴[] No.43541796[source]
It is hard that people have to remember these options on a per-compiler basis. I'd rather prefer people use easy to remember flags like `-O2` than the word soup mentioned here.

Compiler writers should revisit their option matrices and come up with easy defaults today.

Disclaimer: Used to work on the GCC code for option handling back in the day. Options like -O2 map to a whole bunch of individual options, and people only needed to remember adding -O2, which corresponded to different values in every era and yet subjectively meant: decently optimized code.

replies(1): >>43543061 #
teo_zero ◴[] No.43543061[source]
> I'd rather prefer people use easy to remember flags

Like -fhardened?

replies(1): >>43546439 #
vkaku ◴[] No.43546439[source]
Sure.

-f is technically machine independent.

-m should be used when having it implemented as machine dependent options.

So if you are telling me all these security features are only developed without requiring to implement per machine level support then it makes sense.

replies(2): >>43547705 #>>43591402 #
1. teo_zero ◴[] No.43591402[source]
Sorry, I'm not sure I understand your point. Are you complaining because it has a leading -f instead of a different spelling?