• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
asm_function()7 int asm_function() {
8   return 41;
9 }
10 #endif
11 
main(void)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