How can i turn off the optimization of llvm-gcc

Hello everyone, how can I turn off the optimization of llvm-gcc,
just like the “-O0” do to gcc ?

Nai XIA wrote:

Hello everyone, how can I turn off the optimization of llvm-gcc,
just like the "-O0" do to gcc ?

You can use llvm-gcc -Wa,-disable-opt -Wl,-disable-opt to disable the optimizations done by gccas and gccld, respectively.

-- John T.