How to make code cross platform Using preprocessor and Compile Time Pound Define Not legible, for both users and creators. It assumes that the control flow of your program is shared on all platforms that you will ever ship on. Using a virtual abstract layer to eliminate the difference between different operating systems, so that … Continue reading From Streaming Day 11
Category: handmade hero
From Streaming Day 10
RDTSC OS might swap out your code and move it back in, which influence the accuracy. the number of cycles != the Number of instructions. QueryPerformanceCounter and QueryPerformanceFrequency Union and an example: LARGE_INTEGER Writing variable into string: If you put extra "%" into format string, wsprintf(cannot print floating numbers) will read into stacks it shouldn't … Continue reading From Streaming Day 10