# Are any compiler flags set on the online judge?

**URL:** <https://discuss.codechef.com/t/are-any-compiler-flags-set-on-the-online-judge/1866>\
**Category:** faq\
**Tags:** compiler, faq\
**Created:** [April 10, 2013, 3:55pm UTC](https://discuss.codechef.com/t/are-any-compiler-flags-set-on-the-online-judge/1866 "2013-04-10T15:55:52Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![admin](https://discuss.codechef.com/user_avatar/discuss.codechef.com/admin/32/212587_2.png) [@admin](https://discuss.codechef.com/u/admin)\
**Post date:** [April 10, 2013, 3:56pm UTC](https://discuss.codechef.com/t/are-any-compiler-flags-set-on-the-online-judge/1866/2 "2013-04-10T15:56:29Z")

</div>

This is the updated information regarding flags on the compilers set by online judge as of March 2024.

- **C++ :**

```auto
O2 - second optimization level,
lm - access to "math.h" library,
fomit-frame-pointer - disallow to store frame pointer in CPU register,
pthread - enable multithreading 

```

- **C :**

```auto
O2 - second optimization level,
lm - access to "math.h" library,
fomit-frame-pointer - disallow to store frame pointer in CPU register,
pthread - enable multithreading

```

- **Rust :**

```auto
opt-level=2 - second optimization level
edition=2024

```

### Runtime Flags

- **Java :**

```auto
Xss64m

```

- \*\* PyPy 3 :\*\*

```auto
OO

```

---

_[View the full topic](https://discuss.codechef.com/t/are-any-compiler-flags-set-on-the-online-judge/1866)._
