tag:blogger.com,1999:blog-17487316.post6815327641692759306..comments2024-01-13T09:14:12.131+00:00Comments on The life of a Games Programmer: Minus4: Profiling.Mikehttp://www.blogger.com/profile/15958965170878448339noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-17487316.post-16963111264149727272007-11-26T17:25:00.000+00:002007-11-26T17:25:00.000+00:00Yep...particually as you want to base decisions ar...Yep...particually as you want to base decisions around number of cycles rather than hits.<BR/><BR/>For example, a hit to normal memory is only 1 cycle extra, but you may think its REALLY important if its being read/written to twice.<BR/><BR/>(Mike)Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-17487316.post-3050627899466552712007-11-26T16:23:00.000+00:002007-11-26T16:23:00.000+00:00No matter if it's cycle based or not, you still co...No matter if it's cycle based or not, you still could make inc/dec/asl etc to increment both counts. OTOH incrementing just one of them makes it easier to see how many cycles you would save by moving a variable to zero page.<BR/><BR/>(Yes, I know that RMW instructions do one read and two writes, but for profiling it's better to forget technical accuracy and get readable results ;)TNThttps://www.blogger.com/profile/11237661109025797335noreply@blogger.comtag:blogger.com,1999:blog-17487316.post-48893598142817538692007-11-25T21:35:00.000+00:002007-11-25T21:35:00.000+00:00No...afraid not. Because Minus4 isn't a cycle base...No...afraid not. Because Minus4 isn't a cycle based emulator, it doesn't have that concept... but any real cycle based one certainly could! <BR/><BR/>However.... that might just confuse people ;)Mikehttps://www.blogger.com/profile/15958965170878448339noreply@blogger.comtag:blogger.com,1999:blog-17487316.post-28931685610298406342007-11-25T20:37:00.000+00:002007-11-25T20:37:00.000+00:00Just lovely! Separate counts makes it way better t...Just lovely! Separate counts makes it way better than just "accessed" count. Do read-modify-write instructions increment both read & write counts?TNThttps://www.blogger.com/profile/11237661109025797335noreply@blogger.com