fork download
  1. #include <stdio.h>
  2.  
  3. __attribute__ ((section (".text")))
  4. unsigned char program[] = {0x89, 0xf8, 0x01, 0xf0, 0xc3};
  5.  
  6. int main(void) {
  7. int (*add)(int, int) = (void*)program;
  8. printf("%d\n", add(40, 2));
  9. return 0;
  10. }
  11.  
Success #stdin #stdout 0s 5280KB
stdin
Standard input is empty
stdout
42