3 ms·
What you really should enable is the fun and safe math optimizations, with -funsafe-math-optimizations.
by mort96 3y ago
What you really should enable is the fun and safe math optimizations, with -funsafe-math-optimizations.
- aqfamnzc 3y agoI 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
- kevincox 3y agoTo 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).
- arcticbull 3y agoI kind of like the idea the flag is sarcastically calling them very fun and very safe.
- dekhn 3y agodon't forget libiberty which is linked in using -liberty (and freedom for all)
- deleted 3y ago[deleted]
- gumby 3y agoThe problem is this causes the compiler to correctly solve your recreational math problems, which isn't actually a much fun as solving them yourself!