Back to Basics: The structure of a Programincluded via the #include directive, • Minus any source lines skipped by conditional inclusion preprocessing directives (#ifdef), • And all macros expanded CppCon 2020 - The Structure of a Program 20Copyright Phase 4 Phase 5 Phase 6 Phase 7 Phase 8 Phase 9 • the source file is decomposed into preprocessing tokens, sequences of whitespace characters, and comments • each comment is replaced by one 9 • preprocessing directives are executed, and macro invocations are expanded • each file included by an #include directive is processed by Phases 1 through 4, recursively • all preprocessing directives0 码力 | 64 页 | 390.34 KB | 6 月前3
A (Short) Tour of C++ Modulescode lines, 59'430 lines after preprocessing static library: compile time 562 ms (baseline + 531 ms), 4685 non-blank {fmt} code lines, 42'735 lines after preprocessing 33 . 3USAGE SCENARIOS MODULARIZED provide! Module interface unit: 10'672 non-blank code lines from {fmt}, 128'431 lines after preprocessing compile time about 31 ms There is no measurable difference to baseline! 33 . 7#include0 码力 | 62 页 | 4.20 MB | 6 月前3
Building CppcheckWhat we learned from 17 years of Cppcheck development Daniel Marjamäki ● token list ○ No preprocessing except: #include “somefile.h” ● function to match tokensRevision 1: data What we learned What we learned from 17 years of Cppcheck development Daniel Marjamäki 2009 ● String based preprocessing ● Extract configurations #ifdef X a = b / 0; #else a = c / 0; #endifSymbol database What we0 码力 | 41 页 | 706.29 KB | 6 月前3
Relocation: Blazing Fast Save And Restore, Then Morel!our poison”: • Doing the conversion manually (good luck, you’ll need it) • Automating: • Preprocessing (my poison of choice, twice already) • Code generators • …Why? • Because computing with homogeneous work? • Last time, I introduced the concept of handle of scattered components. • I showed a preprocessing library to simulate reflection (introspection) to generate both the “normal” classes/structs0 码力 | 41 页 | 2.81 MB | 6 月前3
Mastering C++ Modulesmodule-unit has a global module fragment, then its first declaration must be // module;. Then, only preprocessing directives can appear in the global module fragment. // Then, a standard module declaration marks0 码力 | 77 页 | 9.07 MB | 6 月前3
Back to Basics: Templates - Part 1files included via #include directives • Minus any source lines skipped by conditional inclusion preprocessing directives (#ifdef) • And all macros expanded 26CppCon 2021 – Back to Basics: Templates – Part0 码力 | 68 页 | 436.75 KB | 6 月前3
Back to Basics: Templates Part 2files included via #include directives • Minus any source lines skipped by conditional inclusion preprocessing directives (#ifdef) • And all macros expanded 3CppCon 2021 – Back to Basics: Templates – Part0 码力 | 80 页 | 490.15 KB | 6 月前3
Google 《Prompt Engineering v7》as a JSON object that conforms to this schema: Snippet 6. Structured output from the LLM By preprocessing your data and instead of providing full documents only providing both the schema and the data0 码力 | 68 页 | 6.50 MB | 6 月前3
Tornado 6.5 Documentationpassed to Rule constructor). process_rule(rule: Rule) → Rule Override this method for additional preprocessing of each rule. Parameters rule (Rule) – a rule to be processed. Returns the same or modified0 码力 | 272 页 | 1.12 MB | 3 月前3
Tornado 6.5 Documentationpassed to Rule constructor). process_rule(rule: Rule) → Rule Override this method for additional preprocessing of each rule. rule (Rule) – a rule to be processed. the same or modified Rule instance. get0 码力 | 437 页 | 405.14 KB | 3 月前3
共 41 条
- 1
- 2
- 3
- 4
- 5













