|
I wonder if one could write a header file containing definitions that would make the following possible. char main[] = {
movl(1, eax),
movl(1, ebx),
movl(message, esi),
movl(13, edx),
syscall(),
movl(60, eax),
xorl(ebx, ebx),
syscall(),
};
Obviously there are some technical difficulties like handling literal values and code sections, but it could be a fun hack, and I've love to see what someone could come up with. |