Skip to content

Instantly share code, notes, and snippets.

View flymanzhao's full-sized avatar

flymanzhao(赵现刚) flymanzhao

View GitHub Profile
@flymanzhao
flymanzhao / gist:e0ded3b0cacf47babab85a95a56dcae3
Last active September 17, 2024 06:41
编译到Native的语言HelloWorld二进制大小 Windows

编译到Native的语言HelloWorld二进制大小

language size size (desc) flags
cpp/c++ 10,752 10.5 KB
nim 140,008 136 KB nim cpp -d:release --opt:size --out=hello_nim_cpp.exe hello.nim
nim 185,955 181 KB nim c -d:release --opt:size --out=hello_nim_c.exe hello.nim
d 507,392 495 KB dmd -O -release hello.d -of=hello_d_dmd.exe
d 462,848 452 KB ldc2 -O -release hello.d -of=hello_d_ldc_static.exe
d 10,752 10.5 KB ldc2 -O -release -link-defaultlib-shared hello.d -of=hello_d_ldc_dyn.exe