Build Optimization

36 views
Skip to first unread message

mata...@gmail.com

unread,
Aug 6, 2016, 12:35:38 PM8/6/16
to llgo-dev
Hi,

Are there any optimization flags for llgo command?

It seems to recognize -O1 -O2 -O3 flags.
Is there a formal documentation for that?

Thanks!

Andrew Wilkins

unread,
Aug 6, 2016, 11:11:13 PM8/6/16
to llgo...@googlegroups.com
On Sun, 7 Aug 2016 at 00:35 <mata...@gmail.com> wrote:
Hi,

Are there any optimization flags for llgo command?

It seems to recognize -O1 -O2 -O3 flags.

Yes, these are all recognised, as well as -O0 (no optimisation), and -Os (optimise for space).

Is there a formal documentation for that?

There's no llgo-specific documentation. These flags simply select the relevant LLVM codegen optimisation level (none, less, default, aggressive). I'm not sure if/where the levels are documented in LLVM.

Cheers,
Andrew
 
Thanks!

--
You received this message because you are subscribed to the Google Groups "llgo-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to llgo-dev+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

mata...@gmail.com

unread,
Aug 7, 2016, 6:48:10 AM8/7/16
to llgo-dev
Thanks Andrew!
Reply all
Reply to author
Forward
0 new messages