build with e.g. gcc hw.s `pkg-config --libs gtk+-3.0`
.globl main;main: push %rbx xor %esi, %esi xor %edi, %edi call gtk_init@PLT lea .HW(%rip), %r8 xor %edx, %edx xor %esi, %esi mov $2, %ecx xor %edi, %edi xor %eax, %eax call gtk_message_dialog_new@PLT mov %rax, %rbx mov %rax, %rdi call gtk_dialog_run@PLT mov %rbx, %rdi call gtk_widget_destroy@PLT xor %eax, %eax pop %rbx ret .HW:.string "Hello World!"
https://wiki.libsdl.org/SDL2/SDL_ShowSimpleMessageBox
build with e.g. gcc hw.s `pkg-config --libs gtk+-3.0`