Compiler options documentation for Swift


Hello, I want to run some microobjects in the Apples Swift language. However, I find it difficult to find the right documentation for the various compiler optimization options.

I read a lot of questions and articles about other linguistic micro-languages, but it would be nice to have documentation on this.

In the latest beta, those used are as follows:

-Onone no optimization

-O Safe optimization?

-Ounchecked (replaced by -Ofast) Unsafe optimization (no checks for integer overflows, array beyond bounds, etc.)

My question is, are all my options possible? And does anyone have a resource that documents this?

EDIT: I found a similar documentation for the one that I need objective-c with gcc here: https://gcc.gnu.org/onlinedocs/gcc-2.95.3/gcc_2.html section 2.8. This is what I need for Swift ..

+5
source share

Source: https://habr.com/ru/post/1208066/


All Articles