https://godbolt.org/ * Add... Source EditorDiff ViewTree (IDE Mode) * More Settings Reset UI layoutReset code and UI layoutOpen new tabHistory Apply Default Font Scale * Templates * Start * Previous * Next Thanks for using Compiler Explorerx * Sponsors BacktraceBacktraceIntelSolid Sands * Share Short LinkFull LinkEmbed in iframe * Policies Cookie policyPrivacy policy * Other Become a Patron Sponsor on GitHub Donate via PayPal Source on GitHub Mailing list Installed libraries Wiki Report an issue How it works Contact the author About the author Changelog Version tree Without Javascript the regular website is not functional. To go to the noscript version Compiler Explorer click here Save/LoadAdd new... CompilerExecution OnlyConformance ViewSource Editor Vim CppInsights Quick-bench [] [] [ ] Popular arguments Detailed Compiler FlagsOpen a new window to edit verbose compiler flags Output... Compile to binary[ ] Execute the code[ ] Intel asm syntax[*] Demangle identifiers[*] Filter... Unused labels[*] Library functions[*] Directives[*] Comments[*] Horizontal whitespace[ ] Libraries Add new... Clone CompilerExecutor From ThisOptimizationPreprocessorASTLLVM IR LLVM Opt PipelineDeviceRust MIRRust HIRRust Macro ExpansionGHC Core GHC STGGHC CmmGCC Tree/RTLGNAT Debug TreeGNAT Debug Expanded Code Graph Add tool... Output (0/0) Compiler License Wrap lines[ ] Libraries CompilationArgumentsStdinCompiler output [] [ ] [ ] [ ] Wrap lines[ ] Select all The current language or compiler does not support this tool Wrap lines[ ] ArgumentsStdinDownload [ ] [ ] Left: [][] Right: [][] Filter headers[*] Apply clang-format[ ] Options Dump Full Module[ ] Demangle Symbols[*] -fno-discard-value-names[*] Filters Filter Inconsequential Passes[ ] Filter Debug Info[*] Function: [] Passes: [] [] Passes Tree Pass[*] RTL Pass[*] IPA Pass[*] Options Raw Dump[ ] Slim Dump[ ] All Options[ ] Addresses[ ] Basic Blocks[ ] Line Numbers[ ] Pass Details[ ] Pass Stats[ ] Unique IDs[ ] Virtual Operands[ ] [] Nav[ ] Physics[ ] Add compilerLibraries Project [ ]Save Add new... Source editorCompilerExecution only CMake[ ] [] [ ] [ ] * Included files * Excluded files [] [ ] No libs configured for this language yet. You can suggest us one at any time ^ [] [-] Website someresource.txt Load and save editor text x * Examples * Browser-local storage * Browser-local history * File system Load from examples: * Load from browser-local storage: * OverwriteDelete [ ] Save to browser-local storage Load from browser-local history: * Load/save to your system Load from a local file[ ]Save to file[SUBMIT] Close Something alert worthy x Close Well, do you or not? x NoYes Enter something here x [ ] CancelOk Compiler Explorer Settings x These settings control how Compiler Explorer acts for you. They are not preserved as part of shared URLs, and are persisted locally using browser local storage. * Colouring * Site behaviour * Keybindings * Editor * Compilation Site theme[] [ ]Colourise lines to show how the source maps to the output [ ]Make all colour schemes available regardless of theme Line highlighting colour scheme [] Default language[] [ ]Keep page status per tab [ ]Allow my source code to be temporarily stored for diagnostic purposes in the event of an error [ ]Use last selected language when opening new Editors [ ]Show community events [ ]Vim editor mode Ctrl+S behaviour[] [ ]MakeCtrl+S include and save the file to a Tree if that's added to the UI [ ]Pop up a dialog box whenCtrl+S is set to create a short link. Desired Font Family in editors[ ] Default font scale[] [ ]Enable font ligatures [ ]Automatically insert matching brackets and parentheses [ ]Automatically indent code (reload page after changing) [ ]Highlight linked code lines on hover [ ]Show asm description on hover [ ]Show quick suggestions [ ]Use custom context menu [ ]Show editor minimap [ ]Keep editor source on language change [ ]Use spaces for indentation Tab width[ ] Format based on[] [ ]Enable Word Wrapping [ ]Enable CodeLens features (requires refresh to take effect) [ ]Compile automatically when source changes Delay before compiling: 0.25s[ ]3s [ ]Enable formatting on compilation (for supported languages) [ ]Compile executor automatically when arguments change Close Share x [ ] [ ]Read Only [ ]Hide Editor Toolbars Rename Pane x [ ] CloseSave Changes History x * History * Diff * ( )( ) [ ]Inline diff Close Libraries x [ ]Search --------------------------------------------------------------------- To add a library, search for one you want and select the version in the dropdown. Or if you have favorited it before, just click the library name in the Favorites section. Libraries are installed |using the conan.io package manager, except for Microsoft compilers, where vcpkg is used. Selected Results Favorites Timing x Close Load Site Template x Templates * Loading..... Preview []