Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
General
»
FPC 3.2.2 - Align for AnsiString
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
Forum Rules
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
Content is distorting / w...
by
knuckles
[
Today
at 01:47:39 am]
AI Assist Python - to - P...
by
kirtu
[
Today
at 12:57:01 am]
Error with last fixes_3.2...
by
Fred vS
[
Today
at 12:51:51 am]
Which Control should I us...
by
Aruna
[
Today
at 12:34:15 am]
Instruction-level paralle...
by
LeP
[
Today
at 12:23:51 am]
Single and Double, Conver...
by
kupferstecher
[June 15, 2026, 10:56:53 pm]
Fpcupdeluxe
by
patyit
[June 15, 2026, 10:47:31 pm]
Lazarus syntax helpers
by
Edson
[June 15, 2026, 10:34:34 pm]
What am I missing here? [...
by
Ten_Mile_Hike
[June 15, 2026, 09:11:10 pm]
[New Component] ExtTabCtr...
by
wp
[June 15, 2026, 08:31:58 pm]
Can /my/ AI help me with ...
by
microxa
[June 15, 2026, 08:25:36 pm]
[ANN] PasBuild v1.9.0 Rel...
by
Graeme
[June 15, 2026, 08:14:26 pm]
If FileExists(
by
Remy Lebeau
[June 15, 2026, 07:58:06 pm]
Codepage issue in console...
by
Hartmut
[June 15, 2026, 07:52:43 pm]
Implementing an Elo ratin...
by
Warfley
[June 15, 2026, 06:33:56 pm]
[SOLVED]Program experienc...
by
Thaddy
[June 15, 2026, 05:39:33 pm]
RunFormula: math expressi...
by
stormray
[June 15, 2026, 03:30:10 pm]
Message CM_ShowingChanged...
by
AlexTP
[June 15, 2026, 01:21:03 pm]
MOVED: Eye Candy TESCheme
by
theo
[June 15, 2026, 10:06:43 am]
storing assets for releas...
by
Handoko
[June 15, 2026, 08:35:23 am]
TCHATGPT — An Artificial ...
by
marcelomaurinmartins@gmai
[June 15, 2026, 02:20:11 am]
Mundo Medieval 3D MMORPG ...
by
Rodrigo Robles
[June 14, 2026, 05:26:38 pm]
Fast Canvas Library V1.05...
by
Gigatron
[June 14, 2026, 04:57:35 pm]
SynEdit theme
by
LemonParty
[June 14, 2026, 02:01:33 pm]
What happened to CocoaWSC...
by
Frank
[June 14, 2026, 01:31:19 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: FPC 3.2.2 - Align for AnsiString (Read 522 times)
paule32
Hero Member
Posts: 647
One in all. But, not all in one.
FPC 3.2.2 - Align for AnsiString
«
on:
May 18, 2025, 01:53:29 pm »
is it possible to align the refernce counter of AnsiStrings ?
I realized some big gaps that are results of QWORD in the Assembly.
is there a switch or option to inject smaller ?
For my problem question I have add a Image of the binary of a test Application.
Take a look to the Arrows and the black box around.
Thanks for feedback.
Logged
MS-IIS - Internet Information Server, Apache, PHP/HTML/CSS, MinGW-32/64 MSys2 GNU C/C++ 13 (-stdc++20), FPC 3.2.2
A Friend in need, is a Friend indeed.
Thaddy
Hero Member
Posts: 19272
Glad to be alive.
Re: FPC 3.2.2 - Align for AnsiString
«
Reply #1 on:
May 18, 2025, 03:30:41 pm »
I see a lot of words that usually apply to your code......
Anyway, jokes aside, try to find out all the alignment options that the compiler has....
When in need I will give you an answer....
Logged
objects are fine constructs. You can even initialize them with constructors.
marcov
Administrator
Hero Member
Posts: 12905
FPC developer.
Re: FPC 3.2.2 - Align for AnsiString
«
Reply #2 on:
May 18, 2025, 03:36:05 pm »
Strange. FPC 3.2. seems to declare ANSIREC as 32-bit, only FPC 3.3.1 pads them to 64-bit:
Code: Pascal
[Select]
[+]
[-]
Type
PAnsiRec
=
^
TAnsiRec
;
TAnsiRec
=
Record
CodePage
:
TSystemCodePage
;
ElementSize
:
Word
;
{$if not defined(VER3_2)}
{$ifdef CPU64}
Ref
:
Longint
;
{$else}
Ref
:
SizeInt
;
{$endif}
{$else}
{$ifdef CPU64}
{ align fields }
Dummy
:
DWord
;
{$endif CPU64}
Ref
:
SizeInt
;
{$endif}
Len
:
SizeInt
;
end
;
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
General
»
FPC 3.2.2 - Align for AnsiString
TinyPortal
© 2005-2018