Hacker News new | past | comments | ask | show | jobs | submit login

Is it still "Hello, world!" if that is never printed to the screen?



Good point! Just add some inline-assembly to have it call write:

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


Not printing "Hello, World!" to the screen would be considered a LOGIC ERROR.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: