I'm trying to set the default optimizations for mips16. Mips16 is a processor mode for code size compression. So for clang I want to add -Os, I think. In general I don't want the compiler to automatically inline, I think. I assume that clang would do some trivial inlines but have not checked. Anything else I should add to clang? What about LLVM? There is no -Os there. Tia. Reed
I don't quite understand your question. Clang already supports -Os option. Evan Sent from my iPad On May 27, 2013, at 7:47 PM, reed kotler <rkotler at mips.com> wrote:> I'm trying to set the default optimizations for mips16. > > Mips16 is a processor mode for code size compression. > > So for clang I want to add -Os, I think. > > In general I don't want the compiler to automatically inline, I think. > I assume that clang would do some trivial inlines but have not checked. > > Anything else I should add to clang? > > What about LLVM? > > There is no -Os there. > > Tia. > > Reed > > > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
On 05/27/2013 10:48 PM, Evan Cheng wrote:> I don't quite understand your question. Clang already supports -Os option. > > EvanOkay. Do I need to add anything to the llc command line?> Sent from my iPad > > On May 27, 2013, at 7:47 PM, reed kotler <rkotler at mips.com> wrote: > >> I'm trying to set the default optimizations for mips16. >> >> Mips16 is a processor mode for code size compression. >> >> So for clang I want to add -Os, I think. >> >> In general I don't want the compiler to automatically inline, I think. >> I assume that clang would do some trivial inlines but have not checked. >> >> Anything else I should add to clang? >> >> What about LLVM? >> >> There is no -Os there. >> >> Tia. >> >> Reed >> >> >> >> _______________________________________________ >> LLVM Developers mailing list >> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu >> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev