[fpc-pascal]Another Intel ASM problem

Kanzelsberger Pavel kanzelsberger at rekt.umb.sk
Wed Jun 27 12:31:36 CEST 2001

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

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 just
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 :)

best regards, Pavel Kanzelsberger

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

> Hmm and can you add something FPC native? Maybe {$BALIGN 8}...

What do you want to do with that? Directives are only used to change
values not to insert code/data

> I think you can support .balign as in AT&T as Intel doesn't define such
> directive :)

How does align work under tasm/masm/delphi?

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/13e8282c/attachment.html>

More information about the fpc-pascal mailing list