Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
General
»
Negative offset
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
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
WIKI Timeout issues
Please read here if you have trouble connecting to the wiki
Recent
Hints for method name mis...
by
dbannon
[
Today
at 02:54:54 am]
Exceptions en FPCUnit
by
ASerge
[
Today
at 02:52:22 am]
Classes vs Objects
by
TBMan
[
Today
at 02:43:06 am]
LAMW complaining about "A...
by
nullpointer
[
Today
at 12:52:28 am]
Firebird 5.02. - the root...
by
incendio
[
Today
at 12:27:38 am]
problem with the lps
by
wp
[
Today
at 12:26:24 am]
WinInet compiling errors.
by
marcov
[June 20, 2025, 11:57:17 pm]
How to export Pascal vari...
by
ecm
[June 20, 2025, 11:38:24 pm]
Layout problem by nested ...
by
Martin_fr
[June 20, 2025, 10:29:38 pm]
Lazarus 4 - I give up and...
by
Martin_fr
[June 20, 2025, 10:23:23 pm]
IBX installing - packages...
by
Nicole
[June 20, 2025, 10:16:20 pm]
Status and Maintenance of...
by
hdb
[June 20, 2025, 10:09:45 pm]
Documentation
by
LemonParty
[June 20, 2025, 10:03:21 pm]
Strict Aliasing Rule
by
nixbody
[June 20, 2025, 10:01:29 pm]
RecordCount not working -...
by
CharlyTango
[June 20, 2025, 09:43:24 pm]
IBX 2.7.2, What's wrong w...
by
rvk
[June 20, 2025, 09:33:54 pm]
InstallAware 2025 Sources...
by
msintle
[June 20, 2025, 08:29:41 pm]
Animation demo with multi...
by
TBMan
[June 20, 2025, 06:25:26 pm]
I created a Hello World p...
by
Weiss
[June 20, 2025, 05:25:28 pm]
[SOLVED] LAMW - UTF-8 cha...
by
Alcatiz
[June 20, 2025, 05:08:51 pm]
[Solved] HMACSHA1Digest g...
by
fedkad
[June 20, 2025, 04:41:07 pm]
TBitBtn no longer shows g...
by
Awesome Programmer
[June 20, 2025, 04:38:15 pm]
SnapModbus
by
Thaddy
[June 20, 2025, 03:18:55 pm]
mormot
by
Thaddy
[June 20, 2025, 03:01:26 pm]
Replace controls dynamica...
by
n7800
[June 20, 2025, 02:42:14 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: Negative offset (Read 584 times)
LemonParty
Full Member
Posts: 185
Negative offset
«
on:
May 18, 2025, 06:05:47 pm »
I notice when compile code like this:
Code: Pascal
[Select]
[+]
[-]
mov qword ptr
[
rsp
-
8
]
,
rsi
compiler give warning
Quote
Warning: Use of [RSP-offset], access may cause a crash or value may be lost
What can be done with this or this warning may be ignored?
Logged
Lazarus v. 4.99. FPC v. 3.3.1. Windows 11
ASerge
Hero Member
Posts: 2421
Re: Negative offset
«
Reply #1 on:
May 18, 2025, 10:16:37 pm »
Code: Pascal
[Select]
[+]
[-]
{$PUSH}
{$WARN 7105 off : Use of $1, access may cause a crash or value may be lost}
mov qword ptr
[
rsp
-
8
]
,
rsi
{$POP}
Logged
LemonParty
Full Member
Posts: 185
Re: Negative offset
«
Reply #2 on:
May 19, 2025, 12:58:11 pm »
Thank you.
Logged
Lazarus v. 4.99. FPC v. 3.3.1. Windows 11
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
General
»
Negative offset
TinyPortal
© 2005-2018