News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests

Main Menu

Align JUMPS and JCC

Started by Jokaste, November 03, 2017, 01:32:48 AM

Previous topic - Next topic

Jokaste

In my programs the procedures are 16 bytes aligned.
Do I also have to align  the JMPs and the Jcond on a 16 bytes boundary?

Kenavo
---------------------------
Grincheux / Jokaste

hutch--


dedndave

i think a lot depends on which processor is running the code

on my P4, short branch targets need not be aligned
but, it helps to align long targets

there are short and long (near) types of JMP's and Jcc's, only far JMP's
calls are either near or far, never short

Jokaste

On my AMD it seems that when JMP and Jcc are aligned it is quicker.
It's easy to say, I have nothing to test.
Kenavo
---------------------------
Grincheux / Jokaste