flat assembler
Message board for the users of flat assembler.

Index > Main > align or not align...

Author
Thread Post new topic Reply to topic
IronFelix



Joined: 09 Dec 2004
Posts: 141
Location: Russia, Murmansk region
IronFelix 13 Jan 2009, 15:49
Hi all!
Please, tell me if it is better to align each function to 16 bytes boundary or any other value? Or it's just don't matter? Will it increase speed? As for code size - it is )))
Thanks.

_________________
Flat Assembler is the best!
Post 13 Jan 2009, 15:49
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20356
Location: In your JS exploiting you and your system
revolution 13 Jan 2009, 15:51
For most common tasks in won't matter either way.
Post 13 Jan 2009, 15:51
View user's profile Send private message Visit poster's website Reply with quote
DJ Mauretto



Joined: 14 Mar 2007
Posts: 464
Location: Rome,Italy
DJ Mauretto 13 Jan 2009, 16:00
Quote:
Hi all!
Please, tell me if it is better to align each function to 16 bytes boundary or any other value? Or it's just don't matter? Will it increase speed? As for code size - it is )))
Thanks.

Usually for code it's not important ,i always align function to 16,
but for data it's very important for speed up memory or cache access Smile

_________________
Nil Volentibus Arduum Razz
Post 13 Jan 2009, 16:00
View user's profile Send private message Reply with quote
IronFelix



Joined: 09 Dec 2004
Posts: 141
Location: Russia, Murmansk region
IronFelix 13 Jan 2009, 16:33
Agree with you, DJ Mauretto, conserning data alignment. But in case of functions... In case of object-oriented programming, for example, where is enough classes and a lot of functions - alignment can be noticeable for code size, imho.
Post 13 Jan 2009, 16:33
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.