mirror of
https://github.com/ish-app/ish.git
synced 2026-01-25 14:06:40 +00:00
Currently shows ish with optimizations on is 20 times slower than a real chip. I'm hoping I can get that down to 10 times slower.
13 lines
217 B
C
13 lines
217 B
C
#include <unistd.h>
|
|
#include <stdio.h>
|
|
|
|
void nop();
|
|
|
|
int main() {
|
|
int loops = 100000000;
|
|
printf("looping %d times\n", loops);
|
|
for (int i = 0; i < loops; i++)
|
|
nop();
|
|
printf("done looping\n");
|
|
}
|