Skip to content

Commit

Permalink
go back to C17
Browse files Browse the repository at this point in the history
  • Loading branch information
austindonisan committed Feb 23, 2024
1 parent 0ed37de commit 57e8f84
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions 1brc.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
#include <math.h>
#include <poll.h>
#include <sched.h>
#include <stdalign.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <string.h>
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#### Buiding
`clang-17 1brc.c -std=c2x -march=native -mtune=native -Ofast -o 1brc`
`clang-17 1brc.c -std=c17 -march=native -mtune=native -Ofast -o 1brc`

AVX2 is required. GCC also works, but its binary is ~15% slower.

Expand Down

0 comments on commit 57e8f84

Please sign in to comment.