int main() { char *str = "hello world\n"; int len = 12; __asm__ ( "int $0x80" :: "a" (4), "b" (1), "c" (str), "d" (len) ); return 0; }