Hacker News new | ask | show | jobs
by zokier 3715 days ago
> 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..

1 comments

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.