New offset count method, improved accordance between code and compiled program