2 comments

[ 3.8 ms ] story [ 14.5 ms ] thread
> cc gpio.c -lgpio -o gpio

Would throwing -O2 in there help? Spending almost 10k clock cycles to toggle a pin sounds bit excessive to me..

I guess, I could run some more test with different compiler optimization and not running kernel with debug features.

Off-Topic: I guess I should have add "Show HN" in the title ... sorry about that.