zlacker

[parent] [thread] 8 comments
1. mort96+(OP)[view] [source] 2024-01-16 15:11:52
What you really should enable is the fun and safe math optimizations, with -funsafe-math-optimizations.
replies(2): >>aqfamn+Wc >>gumby+Qz
2. aqfamn+Wc[view] [source] 2024-01-16 16:06:01
>>mort96+(OP)
I know almost nothing about compiler flags but I got a laugh out of this even though I still don't know if you're joking or not. Edit: Just read it again and now I understand the joke. Haha
replies(2): >>kevinc+xo >>dekhn+te1
◧◩
3. kevinc+xo[view] [source] [discussion] 2024-01-16 17:02:06
>>aqfamn+Wc
To others `-f` is a common prefix for GCC flags. You can think of this as "enable feature". So -funsafe-math-operations should be read as (-f) (unsafe-math-operations). Not (-)(funsafe-math-operations).
replies(1): >>arctic+SV
4. gumby+Qz[view] [source] 2024-01-16 17:52:33
>>mort96+(OP)
The problem is this causes the compiler to correctly solve your recreational math problems, which isn't actually a much fun as solving them yourself!
◧◩◪
5. arctic+SV[view] [source] [discussion] 2024-01-16 19:20:48
>>kevinc+xo
I kind of like the idea the flag is sarcastically calling them very fun and very safe.
◧◩
6. dekhn+te1[view] [source] [discussion] 2024-01-16 20:41:58
>>aqfamn+Wc
don't forget libiberty which is linked in using -liberty (and freedom for all)
replies(2): >>cozzyd+Zl1 >>gumby+1Y1
◧◩◪
7. cozzyd+Zl1[view] [source] [discussion] 2024-01-16 21:21:04
>>dekhn+te1
strangely I'm not aware of a libibre.
replies(1): >>dekhn+Kr1
◧◩◪◨
8. dekhn+Kr1[view] [source] [discussion] 2024-01-16 21:53:33
>>cozzyd+Zl1
oh, that's called -lmojito
◧◩◪
9. gumby+1Y1[view] [source] [discussion] 2024-01-17 01:03:56
>>dekhn+te1
BTW that library was named by John Gilmore, who’s a pretty hardcore libertarian.
[go to top]