program stringlengths 98 1.22k | disassembly stringlengths 6.09k 13.1k | flags stringclasses 4
values | architecture stringclasses 1
value |
|---|---|---|---|
#include <stdio.h>
int main() {
int a = 5;
int b = 10;
printf("Sum: %d\n", a + b);
return 0;
} |
/data/compiled/sample_program_1_O0_x86: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%rax # 3fe8 <__gmon_start__@Base>
100f... | -O0 | x86 |
#include <stdio.h>
int main() {
int a = 5;
int b = 10;
printf("Sum: %d\n", a + b);
return 0;
} |
/data/compiled/sample_program_1_O1_x86: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%rax # 3fe8 <__gmon_start__@Base>
100f... | -O1 | x86 |
#include <stdio.h>
int main() {
int a = 5;
int b = 10;
printf("Sum: %d\n", a + b);
return 0;
} |
/data/compiled/sample_program_1_O2_x86: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%rax # 3fe8 <__gmon_start__@Base>
100f... | -O2 | x86 |
#include <stdio.h>
int main() {
int a = 5;
int b = 10;
printf("Sum: %d\n", a + b);
return 0;
} |
/data/compiled/sample_program_1_O3_x86: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%rax # 3fe8 <__gmon_start__@Base>
100f... | -O3 | x86 |
#include <stdio.h>
int main() {
int a = 5, b = 10;
printf("Less than: %d\n", a < b);
return 0;
} |
/data/compiled/sample_program_10_O0_x86: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%rax # 3fe8 <__gmon_start__@Base>
100... | -O0 | x86 |
#include <stdio.h>
int main() {
int a = 5, b = 10;
printf("Less than: %d\n", a < b);
return 0;
} |
/data/compiled/sample_program_10_O1_x86: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%rax # 3fe8 <__gmon_start__@Base>
100... | -O1 | x86 |
#include <stdio.h>
int main() {
int a = 5, b = 10;
printf("Less than: %d\n", a < b);
return 0;
} |
/data/compiled/sample_program_10_O2_x86: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%rax # 3fe8 <__gmon_start__@Base>
100... | -O2 | x86 |
#include <stdio.h>
int main() {
int a = 5, b = 10;
printf("Less than: %d\n", a < b);
return 0;
} |
/data/compiled/sample_program_10_O3_x86: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%rax # 3fe8 <__gmon_start__@Base>
100... | -O3 | x86 |
#include <stdio.h>
int main() {
FILE *fp;
fp = fopen("testfile1.txt", "w");
if (fp != NULL) {
fprintf(fp, "Hello, world!\n");
fclose(fp);
}
return 0;
} |
/data/compiled/sample_program_11_O0_x86: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%rax # 3fe8 <__gmon_start__@Base>
100... | -O0 | x86 |
#include <stdio.h>
int main() {
FILE *fp;
fp = fopen("testfile1.txt", "w");
if (fp != NULL) {
fprintf(fp, "Hello, world!\n");
fclose(fp);
}
return 0;
} |
/data/compiled/sample_program_11_O1_x86: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%rax # 3fe8 <__gmon_start__@Base>
100... | -O1 | x86 |
#include <stdio.h>
int main() {
FILE *fp;
fp = fopen("testfile1.txt", "w");
if (fp != NULL) {
fprintf(fp, "Hello, world!\n");
fclose(fp);
}
return 0;
} |
/data/compiled/sample_program_11_O2_x86: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%rax # 3fe8 <__gmon_start__@Base>
100... | -O2 | x86 |
#include <stdio.h>
int main() {
FILE *fp;
fp = fopen("testfile1.txt", "w");
if (fp != NULL) {
fprintf(fp, "Hello, world!\n");
fclose(fp);
}
return 0;
} |
/data/compiled/sample_program_11_O3_x86: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%rax # 3fe8 <__gmon_start__@Base>
100... | -O3 | x86 |
#include <stdio.h>
int main() {
FILE *fp;
char buffer[100];
fp = fopen("testfile2.txt", "r");
if (fp != NULL) {
while (fgets(buffer, 100, fp) != NULL) {
printf("%s", buffer);
}
fclose(fp);
}
return 0;
} |
/data/compiled/sample_program_12_O0_x86: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%rax # 3fe8 <__gmon_start__@Base>
100... | -O0 | x86 |
#include <stdio.h>
int main() {
FILE *fp;
char buffer[100];
fp = fopen("testfile2.txt", "r");
if (fp != NULL) {
while (fgets(buffer, 100, fp) != NULL) {
printf("%s", buffer);
}
fclose(fp);
}
return 0;
} |
/data/compiled/sample_program_12_O1_x86: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%rax # 3fe8 <__gmon_start__@Base>
100... | -O1 | x86 |
#include <stdio.h>
int main() {
FILE *fp;
char buffer[100];
fp = fopen("testfile2.txt", "r");
if (fp != NULL) {
while (fgets(buffer, 100, fp) != NULL) {
printf("%s", buffer);
}
fclose(fp);
}
return 0;
} |
/data/compiled/sample_program_12_O2_x86: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%rax # 3fe8 <__gmon_start__@Base>
100... | -O2 | x86 |
#include <stdio.h>
int main() {
FILE *fp;
char buffer[100];
fp = fopen("testfile2.txt", "r");
if (fp != NULL) {
while (fgets(buffer, 100, fp) != NULL) {
printf("%s", buffer);
}
fclose(fp);
}
return 0;
} |
/data/compiled/sample_program_12_O3_x86: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%rax # 3fe8 <__gmon_start__@Base>
100... | -O3 | x86 |
#include <stdio.h>
int main() {
FILE *fp;
int numbers[] = {1, 2, 3, 4, 5};
fp = fopen("testfile3.txt", "w");
if (fp != NULL) {
for (int i = 0; i < 5; i++) {
fprintf(fp, "%d\n", numbers[i]);
}
fclose(fp);
}
return 0;
} |
/data/compiled/sample_program_13_O0_x86: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%rax # 3fe8 <__gmon_start__@Base>
100... | -O0 | x86 |
#include <stdio.h>
int main() {
FILE *fp;
int numbers[] = {1, 2, 3, 4, 5};
fp = fopen("testfile3.txt", "w");
if (fp != NULL) {
for (int i = 0; i < 5; i++) {
fprintf(fp, "%d\n", numbers[i]);
}
fclose(fp);
}
return 0;
} |
/data/compiled/sample_program_13_O1_x86: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%rax # 3fe8 <__gmon_start__@Base>
100... | -O1 | x86 |
#include <stdio.h>
int main() {
FILE *fp;
int numbers[] = {1, 2, 3, 4, 5};
fp = fopen("testfile3.txt", "w");
if (fp != NULL) {
for (int i = 0; i < 5; i++) {
fprintf(fp, "%d\n", numbers[i]);
}
fclose(fp);
}
return 0;
} |
/data/compiled/sample_program_13_O2_x86: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%rax # 3fe8 <__gmon_start__@Base>
100... | -O2 | x86 |
#include <stdio.h>
int main() {
FILE *fp;
int numbers[] = {1, 2, 3, 4, 5};
fp = fopen("testfile3.txt", "w");
if (fp != NULL) {
for (int i = 0; i < 5; i++) {
fprintf(fp, "%d\n", numbers[i]);
}
fclose(fp);
}
return 0;
} |
/data/compiled/sample_program_13_O3_x86: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%rax # 3fe8 <__gmon_start__@Base>
100... | -O3 | x86 |
#include <stdio.h>
int main() {
FILE *fp;
int number;
fp = fopen("testfile4.txt", "r");
if (fp != NULL) {
while (fscanf(fp, "%d", &number) == 1) {
printf("%d\n", number);
}
fclose(fp);
}
return 0;
} |
/data/compiled/sample_program_14_O0_x86: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%rax # 3fe8 <__gmon_start__@Base>
100... | -O0 | x86 |
#include <stdio.h>
int main() {
FILE *fp;
int number;
fp = fopen("testfile4.txt", "r");
if (fp != NULL) {
while (fscanf(fp, "%d", &number) == 1) {
printf("%d\n", number);
}
fclose(fp);
}
return 0;
} |
/data/compiled/sample_program_14_O1_x86: file format elf64-x86-64
Disassembly of section .init:
0000000000001000 <_init>:
1000: f3 0f 1e fa endbr64
1004: 48 83 ec 08 sub $0x8,%rsp
1008: 48 8b 05 d9 2f 00 00 mov 0x2fd9(%rip),%rax # 3fe8 <__gmon_start__@Base>
100... | -O1 | x86 |
End of preview. Expand in Data Studio
This is a test dataset of compiled c programs
- Downloads last month
- 9