[fpc-pascal]Another Intel ASM problem

Kanzelsberger Pavel kanzelsberger at rekt.umb.sk
Wed Jun 27 15:49:27 CEST 2001

Great! Simply great... can't wait for that :-))

regards, Pavel Kanzelsberger

-----Original Message-----
From: Peter Vreman [mailto:peter at freepascal.org]
Sent: Wednesday, June 27, 2001 3:12 PM
To: fpc-pascal at deadlock.et.tudelft.nl
Subject: RE: [fpc-pascal]Another Intel ASM problem

> Yes I know that directives are used to change configuration, for example
> setting {$BALIGN 8} compiler should add ".balign 8" in before every
> procedure code...

But what about alignment of jumps and loops? A more generic


is more generic and extendable

> I never used this in TASM or in Delphi, I just found it in FPC sources
> inside AT&T assembler and found that 8 byte aligned code really speeds-up
> the execution so I want to use it in my libraries...
> Another idea is to add new optimization switch which adds this to every
> procedure and main code...
> But hey, it's you who will decide to put it and which way :-))) This is
> my idea about this, because it's much easier to use it as FPC feature
> instead of rewriting 80000 lines of code to AT&T assembler :)

I think that the simple word ALIGN should be enough:

    mov eax,1
    inc eax
    loop @1

This is readable and i think it won't clash with other things.

Anybody other opinions?

Btw. this will be added only in the 1.1 development version

fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20010627/28353e5a/attachment.html>

More information about the fpc-pascal mailing list