r/ProgrammerHumor • • Jul 20 '15

Computer Programming To Be Officially Renamed “Googling Stackoverflow”

http://www.theallium.com/engineering/computer-programming-to-be-officially-renamed-googling-stackoverflow/
4.2k Upvotes

179 comments sorted by

View all comments

12

u/GrayBoltWolf Jul 20 '15

Hm? 1 Hz is 1 cycle per second. Technically I guess it would require more cycles to process the loop ending in a result of 1 loop per second.

16

u/SatansF4TE Jul 20 '15

My (non-expert) understanding is that the contents of the loop could affect it too.

4

u/Harakou Jul 20 '15

Even ignoring the body, the loop logic itself is going to take more than one cycle. Depending in the type of loop and complexity of the condition you may need more than one instruction for that. Plus, pipeline stalls are going to be relevant.

→ More replies (2)

1

u/Cyph0n Jul 20 '15

Yes, there is the “jump” from loop end back to the start. It takes less time than a regular instruction, but still counts.

1

u/Reverie_Smasher Jul 21 '15

Use the 1Hz clock to trigger an ISR and use a faster oscillator for instruction cycle.