Sökning: "Monomorphization"

Hittade 1 uppsats innehållade ordet Monomorphization.

  1. 1. Performance-Aware Code Size Optimization of Generic Functions through Automatic Implementation of Dynamic Dispatch

    Master-uppsats, Linköpings universitet/Programvara och system

    Författare :Ivar Härnqvist; [2022]
    Nyckelord :Compiler technology; Programming language design; Performance; Code size optimization; Generic programming; Polymorphism; Dynamic dispatch; Type erasure; Monomorphization; Templates; C ; Kompilatorteknik; Programspråksdesign; Prestanda; Kodstorleksoptimering; Generisk programmering; Polymorfism; Dynamic dispatch; Typradering; Monomorfisering; Templates; C ;

    Sammanfattning : Monomorphization and dynamic dispatch are two common techniques for implementing polymorphism in statically typed programming languages. Function templates in C++ use the former technique to enable algorithms written as generic functions to be efficiently reused with multiple different data types by producing a separate function instantiation for each invocation that uses a unique permutation of argument types. LÄS MER