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
64 bits and PascalScript
by
LV
[
Today
at 11:17:30 pm]
Layout problem by nested ...
by
Nicole
[
Today
at 10:34:03 pm]
InstallAware 2025 Sources...
by
n7800
[
Today
at 09:37:05 pm]
Lazarus 4 under Win 7 - "...
by
Martin_fr
[
Today
at 09:07:59 pm]
CEF component - the first...
by
Nicole
[
Today
at 09:05:31 pm]
Trying to find/download E...
by
tfurnivall
[
Today
at 08:43:56 pm]
Lazarus 4 - I give up and...
by
Nicole
[
Today
at 08:43:21 pm]
How do you place a breakp...
by
Thaddy
[
Today
at 07:51:06 pm]
Where to download IBX pre...
by
Thaddy
[
Today
at 06:44:59 pm]
Hints for method name mis...
by
dsiders
[
Today
at 05:32:57 pm]
Strict Aliasing Rule
by
nixbody
[
Today
at 05:22:13 pm]
Lazarus 4, What's wrong w...
by
incendio
[
Today
at 03:38:23 pm]
mormot
by
PierceNg
[
Today
at 03:22:50 pm]
IBX, unable to install pr...
by
incendio
[
Today
at 02:07:06 pm]
problem with the lps
by
Thaddy
[
Today
at 01:30:42 pm]
Crash on changing a strin...
by
Thaddy
[
Today
at 12:42:35 pm]
OpenDialog and mouse even...
by
jcmontherock
[
Today
at 11:37:35 am]
[SOLVED] Dart sass gui
by
Pe3s
[
Today
at 11:34:01 am]
Replace controls dynamica...
by
CM630
[
Today
at 11:15:01 am]
MacOS intel : Lazarus-dar...
by
madref
[
Today
at 10:01:19 am]
Being blocked in Safari
by
Marc
[
Today
at 09:37:49 am]
How to toggle back to the...
by
Martin_fr
[
Today
at 09:31:06 am]
[SOLVED] Which RTL Unit d...
by
Thaddy
[
Today
at 08:34:58 am]
IBX 2.7.2.1650 Bug?
by
incendio
[
Today
at 06:33:52 am]
Component to manage short...
by
EganSolo
[
Today
at 12:36:36 am]
« previous
next »
Print
Pages: [
1
]
Author
Topic: Negative offset (Read 583 times)
LemonParty
Full Member
Posts: 181
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: 2419
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: 181
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