As is, it completely unusable in systems with limites resources, like embedded and IoT.
16x bigger compared to plain C...
00410D20 Konan_start proc near ; CODE XREF: main:loc_40D51A๏ฟฝp
00410D20
00410D20 var_F0 = xmmword ptr -0F0h
00410D20 var_E0 = xmmword ptr -0E0h
00410D20 var_D0 = xmmword ptr -0D0h
00410D20 var_C0 = qword ptr -0C0h
00410D20 var_B8 = qword ptr -0B8h
00410D20 var_B0 = qword ptr -0B0h
00410D20 var_A8 = qword ptr -0A8h
00410D20 var_A0 = xmmword ptr -0A0h
00410D20 var_90 = xmmword ptr -90h
00410D20 var_80 = xmmword ptr -80h
00410D20 var_70 = xmmword ptr -70h
00410D20 var_60 = xmmword ptr -60h
00410D20 var_48 = qword ptr -48h
00410D20 var_40 = xmmword ptr -40h
00410D20
00410D20 push rbp
00410D21 push r15
00410D23 push r14
00410D25 push rsi
00410D26 push rdi
00410D27 push rbx
00410D28 sub rsp, 0E8h
00410D2F lea rbp, [rsp+80h]
00410D37 xorps xmm0, xmm0
00410D3A movaps [rbp+90h+var_A0], xmm0
00410D3E mov [rbp+90h+var_48], 0
00410D46 movaps [rbp+90h+var_D0], xmm0
00410D4A movaps [rbp+90h+var_E0], xmm0
00410D4E movaps [rbp+90h+var_F0], xmm0
00410D52 mov [rbp+90h+var_C0], 0
00410D5A lea rdx, [rbp+90h+var_F0+8]
00410D5E lea rcx, ktypeglobal_kotlin_text_StringBuilder_internal
00410D65 call AllocInstance
00410D6A mov rsi, rax
00410D6D mov qword ptr [rbp+90h+var_40], 0
00410D75 mov edx, 0Ah
00410D7A mov rcx, rsi
00410D7D call kfun_kotlin_text_StringBuilder__init__kotlin_Int_Reference
00410D82 lea rdi, [rbp+90h+var_E0]
00410D86 lea rcx, [rbp+90h+var_40]
00410D8A mov edx, 1
00410D8F call LeaveFrame
00410D94 lea rdx, str_Konan_govorit_
00410D9B mov rcx, rsi
00410D9E mov r8, rdi
00410DA1 call kfun_kotlin_text_StringBuilder_append_kotlin_String_Reference
00410DA6 lea r8, [rbp+90h+var_E0+8]
00410DAA lea rdx, str_Ln
00410DB1 mov rcx, rsi
00410DB4 call kfun_kotlin_text_StringBuilder_append_kotlin_String_Reference
00410DB9 lea r8, [rbp+90h+var_D0]
00410DBD lea rdx, str_ZDRAVSTVUI_MIR_
00410DC4 mov rcx, rsi
00410DC7 call kfun_kotlin_text_StringBuilder_append_kotlin_String_Reference
00410DCC lea r8, [rbp+90h+var_D0+8]
00410DD0 lea rdx, str_Ln
00410DD7 mov rcx, rsi
00410DDA call kfun_kotlin_text_StringBuilder_append_kotlin_String_Reference
00410DDF lea rdx, [rbp+90h+var_C0]
00410DE3 mov rcx, rsi
00410DE6 call kfun_kotlin_text_StringBuilder_toString__Reference
00410DEB mov rdi, rax
00410DEE mov qword ptr [rbp+90h+var_90], 0
00410DF6 lea rcx, [rbp+90h+var_90]
00410DFA mov edx, 1
00410DFF call LeaveFrame
00410E04 mov qword ptr [rbp+90h+var_90], 0
00410E0C lea rcx, [rbp+90h+var_90]
00410E10 mov edx, 1
00410E15 call LeaveFrame
00410E1A call Kotlin_Int_or_Int
00410E1F mov r14d, eax
00410E22 xorps xmm0, xmm0
00410E25 movaps [rbp+90h+var_60], xmm0
00410E29 movaps [rbp+90h+var_70], xmm0
00410E2D movaps [rbp+90h+var_80], xmm0
00410E31 movaps [rbp+90h+var_90], xmm0
00410E35 lea rdx, [rbp+90h+var_90+8]
00410E39 lea rcx, ktypeglobal_kotlinx_cinterop_MemScope_internal
00410E40 call AllocInstance
00410E45 mov rsi, rax
00410E48 mov rcx, rsi
00410E4B call kfun_kotlinx_cinterop_MemScope__init___Reference
00410E50 lea r15, [rbp+90h+var_80]
00410E54 mov qword ptr [rbp+90h+var_40], 0
00410E5C lea rcx, [rbp+90h+var_40]
00410E60 mov edx, 1
00410E65 call LeaveFrame
00410E6A test rdi, rdi
00410E6D jz short loc_410EC6
00410E6F lea rdx, [rbp+90h+var_80+8]
00410E73 mov rcx, rdi
00410E76 call kfun_kotlinx_cinterop__get_wcstr_@kotlin_String___Reference
00410E7B mov rdi, rax
00410E7E test rdi, rdi
00410E81 jz short loc_410EC6
00410E83 lea rcx, [rbp+90h+var_70]
00410E87 mov qword ptr [rbp+90h+var_40], 0
00410E8F mov rdx, rsi
00410E92 call UpdateReturnRef
00410E97 lea rcx, [rbp+90h+var_40]
00410E9B mov edx, 1
00410EA0 call LeaveFrame
00410EA5 mov rax, [rdi]
00410EA8 mov rax, [rax+78h]
00410EAC mov rcx, rdi
00410EAF mov rdx, rsi
00410EB2 call rax
00410EB4 mov rdi, rax
00410EB7 mov qword ptr [rbp+90h+var_40], 0
00410EBF test rdi, rdi
00410EC2 jnz short loc_410ED0
00410EC4 jmp short loc_410ECE
00410EC6 ; ---------------------------------------------------------------------------
00410EC6
00410EC6 loc_410EC6: ; CODE XREF: Konan_start+14D๏ฟฝj
00410EC6 ; Konan_start+161๏ฟฝj
00410EC6 mov qword ptr [rbp+90h+var_40], 0
00410ECE
00410ECE loc_410ECE: ; CODE XREF: Konan_start+1A4๏ฟฝj
00410ECE xor edi, edi
00410ED0
00410ED0 loc_410ED0: ; CODE XREF: Konan_start+1A2๏ฟฝj
00410ED0 lea rbx, [rbp+90h+var_70+8]
00410ED4 lea rcx, [rbp+90h+var_40]
00410ED8 mov edx, 1
00410EDD call LeaveFrame
00410EE2 lea rcx, str_Zagolovok_okna
00410EE9 mov rdx, rbx
00410EEC call kfun_kotlinx_cinterop__get_wcstr_@kotlin_String___Reference
00410EF1 mov rbx, rax
00410EF4 test rbx, rbx
00410EF7 jz short loc_410F3C
00410EF9 lea rcx, [rbp+90h+var_60]
00410EFD mov qword ptr [rbp+90h+var_40], 0
00410F05 mov rdx, rsi
00410F08 call UpdateReturnRef
00410F0D lea rcx, [rbp+90h+var_40]
00410F11 mov edx, 1
00410F16 call LeaveFrame
00410F1B mov rax, [rbx]
00410F1E mov rax, [rax+78h]
00410F22 mov rcx, rbx
00410F25 mov rdx, rsi
00410F28 call rax
00410F2A mov rbx, rax
00410F2D mov qword ptr [rbp+90h+var_40], 0
00410F35 test rbx, rbx
00410F38 jnz short loc_410F46
00410F3A jmp short loc_410F44
00410F3C ; ---------------------------------------------------------------------------
00410F3C
00410F3C loc_410F3C: ; CODE XREF: Konan_start+1D7๏ฟฝj
00410F3C mov qword ptr [rbp+90h+var_40], 0
00410F44
00410F44 loc_410F44: ; CODE XREF: Konan_start+21A๏ฟฝj
00410F44 xor ebx, ebx
00410F46
00410F46 loc_410F46: ; CODE XREF: Konan_start+218๏ฟฝj
00410F46 lea rcx, [rbp+90h+var_40]
00410F4A mov edx, 1
00410F4F call LeaveFrame
00410F54 xor r15d, r15d
00410F57 xor ecx, ecx
00410F59 mov rdx, rdi
00410F5C mov r8, rbx
00410F5F mov r9d, r14d
00410F62 call win32_kni_MessageBoxW
00410F67 mov edi, eax
00410F69 mov rcx, rsi
00410F6C call kfun_kotlinx_cinterop_MemScope_clear__
00410F71 lea rsi, [rbp+90h+var_60+8]
00410F75 xorps xmm0, xmm0
00410F78 movaps [rbp+90h+var_40], xmm0
00410F7C lea rdx, [rbp+90h+var_40+8]
00410F80 lea rcx, ktypeglobal_konan_internal_IntBox_internal
00410F87 call AllocInstance
00410F8C mov rbx, rax
00410F8F mov [rbp+90h+var_A8], 0
00410F97 mov [rbp+90h+var_B0], 0
00410F9F mov [rbp+90h+var_B8], 0
00410FA7 lea rcx, [rbp+90h+var_B8]
00410FAB mov edx, 1
00410FB0 call LeaveFrame
00410FB5 lea rcx, [rbp+90h+var_B0]
00410FB9 mov edx, 1
00410FBE call LeaveFrame
00410FC3 mov [rbx+10h], edi
00410FC6 lea rcx, [rbp+90h+var_A8]
00410FCA mov edx, 1
00410FCF call LeaveFrame
00410FD4 mov rcx, rsi
00410FD7 mov rdx, rbx
00410FDA call UpdateReturnRef
00410FDF lea rcx, [rbp+90h+var_40]
00410FE3 mov edx, 2
00410FE8 call LeaveFrame
00410FED mov qword ptr [rbp+90h+var_40], 0
00410FF5 lea rcx, [rbp+90h+var_40]
00410FF9 mov edx, 1
00410FFE call LeaveFrame
00411003 lea rcx, [rbp+90h+var_90]
00411007 mov edx, 8
0041100C call LeaveFrame
00411011 lea rcx, [rbp+90h+var_F0]
00411015 mov edx, 7
0041101A call LeaveFrame
0041101F lea rcx, [rbp+90h+var_48]
00411023 mov edx, 1
00411028 call LeaveFrame
0041102D
0041102D loc_41102D: ; CODE XREF: .text:00000000004110F4๏ฟฝj
0041102D lea rcx, [rbp+90h+var_A0]
00411031 mov edx, 2
00411036 call LeaveFrame
0041103B mov eax, r15d
0041103E add rsp, 0E8h
00411045 pop rbx
00411046 pop rdi
00411047 pop rsi
00411048 pop r14
0041104A pop r15
0041104C pop rbp
0041104D retn
0041104D Konan_start endp