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
Forum Rules
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
Why does $fpctarget not w...
by
Gustavo 'Gus' Carreno
[
Today
at 05:35:14 am]
The issue of the scroll b...
by
jianwt
[
Today
at 03:35:22 am]
How can I uninstall the p...
by
xiyi0616
[
Today
at 02:58:30 am]
Does anyone have experien...
by
xiyi0616
[
Today
at 02:31:06 am]
Youtube Downloader in Pas...
by
yus
[
Today
at 01:40:58 am]
Debugger regression in La...
by
TheMouseAUS
[
Today
at 01:26:53 am]
Lazarus & FPC documentati...
by
wp
[
Today
at 01:26:50 am]
Not happy with TTimeEdit
by
gues1
[July 16, 2025, 10:58:04 pm]
THUMBBUTTON does not work...
by
ASerge
[July 16, 2025, 09:22:18 pm]
Lazarus Release 4.0
by
ManoelJr
[July 16, 2025, 08:35:45 pm]
fpc in [home] folder not ...
by
DonAlfredo
[July 16, 2025, 08:32:39 pm]
Debugger use on OBJECT ty...
by
Martin_fr
[July 16, 2025, 08:16:43 pm]
RuntimeError 103 File not...
by
gues1
[July 16, 2025, 07:51:44 pm]
Asking for an example of ...
by
Thaddy
[July 16, 2025, 07:33:15 pm]
Suddenly a build error? [...
by
TBMan
[July 16, 2025, 07:04:45 pm]
Is Lazarus still serious ...
by
Thaddy
[July 16, 2025, 05:10:53 pm]
TMemoryStream Question wi...
by
Thaddy
[July 16, 2025, 03:57:33 pm]
Problems with libraries f...
by
DonAlfredo
[July 16, 2025, 03:03:27 pm]
Possible Bug or Known Beh...
by
Aruna
[July 16, 2025, 02:48:41 pm]
It does not show my progr...
by
RayoGlauco
[July 16, 2025, 02:48:05 pm]
activex.pp DosDateTimeToV...
by
440bx
[July 16, 2025, 02:09:39 pm]
"Mario & Luigi" (1994-200...
by
Nimbus
[July 16, 2025, 12:14:31 pm]
UTF8 Keyboard entry
by
Thaddy
[July 16, 2025, 06:17:25 am]
Will there be a freezing ...
by
xiyi0616
[July 16, 2025, 04:25:25 am]
GitHub action setup-lazar...
by
Gustavo 'Gus' Carreno
[July 16, 2025, 01:03:07 am]
« previous
next »
Print
Pages: [
1
]
Author
Topic: Negative offset (Read 591 times)
LemonParty
Full Member
Posts: 202
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: 2443
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: 202
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