Skip to content

Instantly share code, notes, and snippets.

View wrl's full-sized avatar

william light wrl

View GitHub Profile
#include <stdio.h>
int
main(int argc, char **argv)
{
int i;
void *jump[] = {
[0] = &&printn,
[1] = &&fizz,
#include <stdio.h>
#include <stdint.h>
#define MAX 100
int
main(int argc, char **argv)
{
intptr_t op[MAX + 2];
int ip;
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#!/usr/bin/env python
# cross_compile.py - waf tool for cross-compilation
# Written in 2017 by William Light <[email protected]>
#
# To the extent possible under law, the author(s) have dedicated all copyright
# and related and neighboring rights to this software to the public domain
# worldwide. This software is distributed without any warranty.
#
# You should have received a copy of the CC0 Public Domain Dedication along
for results/control:
when sleeping for 3000000us:
samples: 6
mean: 58.33ns (0.0001ms)
median: 63.00ns (0.0001ms)
min: 24.00ns (0.0000ms)
max: 74.00ns (0.0001ms)
when sleeping for 1000000us:
samples: 19
#!/usr/bin/env python
# cross_compile.py - waf tool for cross-compilation
# Written in 2017 by William Light <[email protected]>
#
# To the extent possible under law, the author(s) have dedicated all copyright
# and related and neighboring rights to this software to the public domain
# worldwide. This software is distributed without any warranty.
#
# You should have received a copy of the CC0 Public Domain Dedication along