Home | History | Annotate | Download | only in subdir4
      1 #include <stdio.h>
      2 
      3 // Use the assembly function in linux and mac where it is built.
      4 #if PLATFORM_LINUX || PLATFORM_MAC
      5 extern int asm_function(void);
      6 #else
      7 int asm_function() {
      8   return 41;
      9 }
     10 #endif
     11 
     12 int main(void)
     13 {
     14   fprintf(stdout, "Hello from program.c\n");
     15   fflush(stdout);
     16   fprintf(stdout, "Got %d.\n", asm_function());
     17   fflush(stdout);
     18   return 0;
     19 }
     20