TheGreyBeast
Programmer
I use a lot of byte variables (5 in fact) and I want to achieve the most performant code with Visual C++ 6.0
I want to load all of them in registers, but the compiler isn't as smart as I thought... It loads three of them in registers al, bl and cl, but it doesn't want to load the others in ah, bh or ch... I don't know why it doesn't use the ah, bh, ch and dh registers (if I create my own assembly version it works fine with the ah and bh registers). Is there a keyword or hint specific to Visual C++ 6 that makes it use those registers?
By the way - I really want to make this in C because I'll significally introduce new things to this code, and introducing these new things in Optimized assembly is really hard.
Thanks. Any help is appreciated.
I want to load all of them in registers, but the compiler isn't as smart as I thought... It loads three of them in registers al, bl and cl, but it doesn't want to load the others in ah, bh or ch... I don't know why it doesn't use the ah, bh, ch and dh registers (if I create my own assembly version it works fine with the ah and bh registers). Is there a keyword or hint specific to Visual C++ 6 that makes it use those registers?
By the way - I really want to make this in C because I'll significally introduce new things to this code, and introducing these new things in Optimized assembly is really hard.
Thanks. Any help is appreciated.