> When I build my code, I notice that the CTFE functions, which are never > referenced in any runtime code, are still present in the object file. For now you can get rid of it with -L--gc-sections (or LTO). gdc also needs -ffunction-sections -fdata-sections.