Skip to content

Instantly share code, notes, and snippets.

@danielhams
Created May 2, 2020 00:54
Show Gist options
  • Save danielhams/df28940940a33263b3250ecd7bac3d51 to your computer and use it in GitHub Desktop.
Save danielhams/df28940940a33263b3250ecd7bac3d51 to your computer and use it in GitHub Desktop.
Simple C and CC programs.
simple.c - compile with mips-sgi-irix6.5-gcc -o simple_c simple.c
#include <stdio.h>
int main(int argc, char **argv)
{
printf("All good.\n");
return 0;
}
simple.cc - compile with mips-sgi-irix6.5-g++ -o simple_cc simple.cc
#include <iostream>
int main(int argc, char**argv)
{
std::cout << "All good" << std::endl;
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment