Back to Basics: The structure of a Programbuilding a program • What a translation unit (TU) is, and its relationship to the code you write • The phases of translation • Declarations, definitions, and linkage • The one-definition rule (ODR) • Storage translation is performed upon a translation unit (TU) in nine well- defined stages • Evocatively named Phases 1 through 9 • A translation unit is defined (roughly) as • A source file, • Plus with all the CppCon 2020 - The Structure of a Program 20Copyright © 2020 Bob Steagall K E W B C O M P U T I N G Phases of Translation 21 CppCon 2020 - The Structure of a Program Phase 1 Phase 2 Phase 3 Phase 40 码力 | 64 页 | 390.34 KB | 6 月前3
Back to Basics: Templates - Part 1Bob Steagall Translation Units • In C++, translation is performed in nine well-defined stages • Phases 1 through 6 perform lexical analysis • These are what we usually refer to as pre-processing • The 26CppCon 2021 – Back to Basics: Templates – Part 1 Copyright © 2021 Bob Steagall Translation Units • Phases 7 and 8 perform syntax analysis, semantic analysis, and codegen • These are what we usually refer execution environment 27CppCon 2021 – Back to Basics: Templates – Part 1 Copyright © 2021 Bob Steagall Phases of Translation (6) – a Sample TU For Fun • Compilers provide a way to inspect TU contents (or something0 码力 | 68 页 | 436.75 KB | 6 月前3
Back to Basics: Templates Part 2Steagall Recap: Translation Units • In C++, translation is performed in nine well-defined stages • Phases 1 through 6 perform lexical analysis (the pre-processor) • The output of Phase 6 is a translation Templates – Part 2 Copyright © 2021 Bob Steagall Two-Phase Translation • Templates are processed in two phases • At the site of its definition, a template is checked for correctness, ignoring template parameters Templates – Part 2 Copyright © 2021 Bob Steagall Two-Phase Translation • Templates are processed in two phases • At the site of its definition, a template is checked for correctness, ignoring template parameters0 码力 | 80 页 | 490.15 KB | 6 月前3
Go 101 (Golang 101) v1.21.0Some Panic/Recover Use Cases §31. Explain Panic/Recover Mechanism in Detail - also explains exiting phases of function calls. §32. Code Blocks and Identifier Scopes §33. Expression Evaluation Orders §34. call is returned, it is possible that it hasn't exited yet. More detailed explanations for exiting phases of function calls can be found in this article (§31). Anonymous Functions Go supports anonymous article will explain panic/recover mechanism in detail. Exiting phases of function calls will also be explained in detail. Exiting Phases of Function Calls In Go, a function call may undergo an exiting0 码力 | 610 页 | 945.17 KB | 1 年前3
Go 101 (Golang 101) v1.21.0Some Panic/Recover Use Cases §31. Explain Panic/Recover Mechanism in Detail - also explains exiting phases of function calls. §32. Code Blocks and Identifier Scopes §33. Expression Evaluation Orders §34. call is returned, it is possible that it hasn't exited yet. More detailed explanations for exiting phases of function calls can be found in this article (§31). Anonymous Functions Go supports anonymous article will explain panic/recover mechanism in detail. Exiting phases of function calls will also be explained in detail. Exiting Phases of Function Calls In Go, a function call may undergo an exiting0 码力 | 880 页 | 833.34 KB | 1 年前3
Go 101 (Golang 101) v1.21.0Panic/Recover Use Cases Contents 2 §31. Explain Panic/Recover Mechanism in Detail - also explains exiting phases of function calls. §32. Code Blocks and Identifier Scopes §33. Expression Evaluation Orders §34 call is returned, it is possible that it hasn't exited yet. More detailed explanations for exiting phases of function calls can be found in this article (§31). Anonymous Functions Go supports anonymous article will explain panic/recover mechanism in detail. Exiting phases of function calls will also be explained in detail. Exiting Phases of Function Calls In Go, a function call may undergo an exiting0 码力 | 630 页 | 3.77 MB | 1 年前3
Remote Execution Caching Compiler (RECC)○ 80% cache hit rate on cacheable compiles ● Shared cache across developer builds ● Used in all phases of the Software Development Lifecycle (SDLC) ● Distributed remote compilation and linking ● Builds0 码力 | 6 页 | 2.03 MB | 6 月前3
Go GC:
Latency Problem SolvedProprietary Sweep Phase Stacks/Registers Globals Google Confidential and Proprietary GC Algorithm Phases Off Stack scan Mark Mark termination Sweep Off Correctness proofs in literature (see me)0 码力 | 20 页 | 897.11 KB | 1 年前3
Spring Framework Reference Documentation 4.3.26.RELEASESmartLifecycle instead for fine-grained control over auto-startup of a specific bean (including startup phases). Also, please note that stop notifications are not guaranteed to come before destruction: On regular method but with different syntax configuration, different error handling rules, or different execution phases per set, it is possible to declare multiple instances of @Sql. With Java 8, @Sql can be used as a public void userTest { // execute code that uses the test schema and test data } Script execution phases By default, SQL scripts will be executed before the corresponding test method. However, if a particular0 码力 | 1323 页 | 4.08 MB | 1 年前3
Spring Framework Reference Documentation v4.3.2SmartLifecycle instead for fine-grained control over auto-startup of a specific bean (including startup phases). Also, please note that stop notifications are not guaranteed to come before destruction: On regular method but with different syntax configuration, different error handling rules, or different execution phases per set, it is possible to declare multiple instances of @Sql. With Java 8, @Sql can be used as a public void userTest { // execute code that uses the test schema and test data } Script execution phases By default, SQL scripts will be executed before the corresponding test method. However, if a particular0 码力 | 1311 页 | 4.07 MB | 1 年前3
共 294 条
- 1
- 2
- 3
- 4
- 5
- 6
- 30













