We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2.11
Submitted code is assembled with nasm -f elf64.
nasm -f elf64
Criterion
section .text global add add: ; int add(int a, int b) using 32-bit registers for ints mov eax, edi ; result = a add eax, esi ; result += b ret ; return result
#include <criterion/criterion.h> int add(int, int); Test(add_test, should_add_integers) { cr_assert_eq(add(1, 1), 2); }
12 seconds
None
nasm
content-issues