Is it possible to output a string to the console in C without including the standard library?
问题 I'm trying to get better understanding of how assembly and machine code works. So I'm compiling this simple snipet with gcc : #include <stdio.h> int main(){ printf("Hello World!"); return 0; } But this includes the default library. I would like to output hello world without using printf but by inlining some assembly in the C file, and adding -nostdlib and -nodefaultlibs options to gcc. How can I do that ? I'm using Windows 10 and mingw-w64 with Intel core i7 6700 HQ (laptop processor). Can I