Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 21994

GCC pragma optimize param

$
0
0

I am aware that I can enable or disable certain optimizations via function attributes (or globally via a pragma) in GCC using the following syntax:

#pragma GCC optimize ("peel-loops")

This is equivalent to passing -fpeel-loops at the command line for the file (assuming this is the first line in the file). But what if I need to configure loop peeling equivalently to passing --param max-peeled-insns=200 at the command line? I tried a few things, none of which work:

#pragma GCC optimize ("max-peeled-insns=200")
#pragma GCC optimize ("param max-peeled-insns=200")
#pragma GCC optimize ("--param max-peeled-insns=200")

How can I do this from within the source code?


Viewing all articles
Browse latest Browse all 21994

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>