Original Post
If u use register or inline for example these are just suggestions to combiler, am I right?
So can u know when combiler does the trick?
Just curius..
quote:Unless I''m totally off with new systems, that''s not what''s going on. register marks a variable to be stored in a CPU register (eax, edx, etc.) rather than in memory; it has nothing to do with cache. I needs to be desided on when the compilation takes place, as it will generate different machine code.
Original post by JoeyBlow2
register is telling the "combiler" to mark a variable as cacheable to the CPU... Now, when the program is run the CPU might not cache it... If it does not have room in the cache to store the variable, it will just place it into system memory... However, the "combiler" will mark it cacheable no matter what, its just up the CPU to listen.
quote:
Original post by Tazel
Do you mean "comp iler"?
tcache
Contact Me
-----------
AH! MY BRAIN IS GOING TO SELF-DETONATE! -- Yours Truly (Jan, 2003)
quote:You usually can not; they are only suggestions to the compiler.
Original post by Craazer
Actualy I knew what they are, but the queston is when do I know WHEN does the compiler optimize?
quote:Check the assembly
I mean can u see it in some log or shometing? Im using visual studio.
quote:You usually can not; they are only suggestions to the compiler.
Original post by CWizard
[quote]Original post by Craazer
Actualy I knew what they are, but the queston is when do I know WHEN does the compiler optimize?
quote:Check the assembly
I mean can u see it in some log or shometing? Im using visual studio.
This topic has been locked by a moderator. New replies are not allowed.
With your permission, GameDev.net uses analytics cookies to understand how people use the platform. You can accept analytics or continue with necessary cookies only. Learn more