First check your compiled program in olly/64dbg to know if the loops are there in assembly code or have been optimized/removed. If loops are removed, try removing compiler optimization and run it again to see if anything new happens? You can try any of these options.
1. If you are using gcc, then try running with gcc -o0. I don't know about msvc.
2. Declare the target variables with volatile keyword, like "volatile int a = k2[ j ]"
3. Write some complex statement inside the loops so that compiler doesn't dare to optimize, or something that creates side effect, like "printf(".")".
Now recompile and check the assembly codes again to make sure loops are there.
If you don't get any difference in time again, then maybe this wasn't what you were looking for. Personally I am not sure about the speed difference in such case, so far I only know about difference when you write it like,
int a = 2;
int a = myClass.b;
The optimizer is just going to delete those loops. Even if it didnt there wouldnt be a difference because memory is just memory and these ints will just end up in the cache / inlined. What are you trying to find out exactly?
am just a beginner , and believe me... Reverse Engineering is taking a huge part in my personal life
i wanna be that professional cracker ! programmer , i need to learn more and more
i won't stop what am doing because i love it ! from deep of my heart
this is not just a hobby for me , its a way of thinking .
Copyright - Good text to fill extra space.
I archived a copy, nice work.
Cinema4D has some excellent tools.
Smudge borders, add fine shadows, fisheye 3% to 6% the subject of image/off center, blur 7%, Sharpen 12% in small areas and a few highlights can take an average image to professional quality.
Alien Effects is a great plugin for doing logos.