diff options
Diffstat (limited to 'man/mono.1')
-rw-r--r-- | man/mono.1 | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/man/mono.1 b/man/mono.1 index 857f3913577..37e96045e56 100644 --- a/man/mono.1 +++ b/man/mono.1 @@ -192,6 +192,19 @@ Same for the llvm tools 'opt' and 'llc'. .TP .I stats Print various stats collected during AOT compilation. +.TP +.I readonly-value=namespace.typename.fieldname=type/value +Override the value of a static readonly field. Usually, during JIT +compilation, the static constructor is ran eagerly, so the value of +a static readonly field is known at compilation time and the compiler +can do a number of optimizations based on it. During AOT, instead, the static +constructor can't be ran, so this option can be used to set the value of such +a field and enable the same set of optimizations. +Type can be any of i1, i2, i4 for integers of the respective sizes (in bytes). +Note that signed/unsigned numbers do not matter here, just the storage size. +This option can be specified multiple times and it doesn't prevent the static +constructor for the type defining the field to execute with the usual rules +at runtime (hence possibly computing a different value for the field). .PP For more information about AOT, see: http://www.mono-project.com/AOT |