Hello World Project (System.out.println 하나만) 했을 때
VS2019 x64
non-static : 11,464,192 bytes
static : 11,463,680 bytes (오히려 줄었다?!?!)
가짜 static 임.... static link 이면 api-ms 없어야 할텐데...
Ubuntu 20.04
non-static : 11,412,048 bytes
$ ldd demo-app-1.0-SNAPSHOT
linux-vdso.so.1 (0x00007fffc989d000)
libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f4460820000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f44607fd000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f44607f0000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f44605f0000)
/lib64/ld-linux-x86-64.so.2 (0x00007f4461325000)
static : 13,155,424 bytes
$ ldd demo-app-1.0-SNAPSHOT
not a dynamic executable
반응형
'개발 및 운영' 카테고리의 다른 글
[임시] OpenWRT + Active Directory (AD) 구축 (0) | 2022.07.12 |
---|---|
MatterMost Webhook 설정 (0) | 2022.03.04 |
hosted-gitlab 에서 dind 사용하기 (0) | 2021.09.02 |
SID (Samba) Format (0) | 2021.08.31 |
유용한 자료 INDEX (0) | 2021.08.20 |
댓글