News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

EVEN or ALIGN

Started by shaldan, October 26, 2005, 09:44:41 AM

Previous topic - Next topic

shaldan

Simple question ... what is the difference between ALIGN and EVEN a what and where is better use of them ?
thanx

hutch--

align is more flexible. EVEN is just ALIGN 2.

If you set the processor model to .486 or higher, you can align up to 16 bytes which is useful at times.
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

shaldan

thanks ...  just one question .... when I use align 4 in the beginnig of all sections, can I count that all data will be aligned or do I need to use ALIGN in the begining of every procedure, funcion etc. ?

EVEN is I saw used only once in the code

hutch--

ALIGN only aligns the following piece of code or data so you normally use it anywhere you need data or code aligned.
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php