📊 Capítulo 01: Ecossistema .NET 8 & CLR
Especialização em Sistemas com C#
🗺️ O Pipeline de Compilação e Execução do .NET 8 (CLR & RyuJIT)
flowchart TD
SRC["Código Fonte C# 12 (.cs)"]
--> ROSLYN["Compilador Roslyn (csc / CLI dotnet build)"]
--> CIL["Common Intermediate Language (CIL / Bytecode .NET em DLL)"]
CIL --> CLR["Common Language Runtime (CLR)"]
CLR --> RYUJIT["RyuJIT Compiler (Just-In-Time Compiler com Tiered Compilation!) ⚡"]
CLR --> GC["Garbage Collector Geracional (Gen 0, Gen 1, Gen 2 e LOH)"]
RYUJIT --> NATIVE["Código de Máquina Nativo (x86_64 / ARM64 com Vetorização AVX)"]
style SRC fill:#ede7f6,stroke:#512da8,stroke-width:2px
style ROSLYN fill:#fff3e0,stroke:#ff9800,stroke-width:1.5px
style CIL fill:#e1f5fe,stroke:#03a9f4,stroke-width:2px
style CLR fill:#e8f5e9,stroke:#4caf50,stroke-width:2px
style RYUJIT fill:#c8e6c9,stroke:#2e7d32,stroke-width:2px
style GC fill:#ffebee,stroke:#d32f2f,stroke-width:1.5px
style NATIVE fill:#00897b,stroke:#004d40,stroke-width:2px,color:#ffffff
🎯 Slide 1: .NET 8 LTS: Alta Performance Unificada
-
Suporte multiplataforma nativo e oficial para Linux, macOS e Windows.
- RyuJIT Avançado: Compilação em camadas (Tiered Compilation) e Dynamic PGO (Profile-Guided Optimization) tornam o .NET 8 uma das plataformas web mais rápidas do mundo no TechEmpower Benchmarks!
🎯 Slide 2: Top-Level Statements do C# Moderno
// Program.cs limpo e direto sem classes Program ou métodos Main verborrágicos:
using System;
Console.Write("Digite o raio: ");
double raio = double.Parse(Console.ReadLine()!);
double area = Math.PI * Math.Pow(raio, 2);
Console.WriteLine($"Área do círculo: {area:F4}");
🎯 Slide 3: O Poder da CLI dotnet
dotnet new console -n MeuApp(Cria projeto)dotnet build -c Release(Compilação otimizada)dotnet run(Execução)dotnet publish -c Release -r linux-x64 --self-contained(Binário autônomo sem dependências externas)
🔗 Navegação do Capítulo 01
| 📖 Ler Conteúdo Completo | 🧠 Fazer Quiz | 💻 Ver Exemplos | 🧩 Exercícios |
Slide 1 de 1
Atalhos: ← → Navegar • Espaço Avançar • F Tela Cheia • Home Início • End Fim