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
Recent
Lazarus Main and Gnome/Wa...
by
Jonax
[
Today
at 04:28:14 am]
I found an actual use for...
by
jamie
[
Today
at 02:02:42 am]
Pre-Pre-Announce: High Pe...
by
jbthiel
[
Today
at 01:26:24 am]
TstringGrid read cell col...
by
Josh
[June 08, 2026, 11:05:23 pm]
Can /my/ AI help me with ...
by
schuler
[June 08, 2026, 10:41:39 pm]
Pascal for AI Agent CLI T...
by
schuler
[June 08, 2026, 10:35:41 pm]
Knigo
by
Roland57
[June 08, 2026, 09:17:39 pm]
is there a Base 26 / Radi...
by
Josh
[June 08, 2026, 08:54:36 pm]
FPC Unleashed (inline var...
by
Fibonacci
[June 08, 2026, 08:49:31 pm]
[New Component] ExtTabCtr...
by
wp
[June 08, 2026, 08:10:11 pm]
XLibre, finally and fortu...
by
Fred vS
[June 08, 2026, 05:59:14 pm]
AArch64. Fast method to c...
by
LemonParty
[June 08, 2026, 05:54:54 pm]
Notetask 1.1.4 - Free cro...
by
AlexanderT
[June 08, 2026, 04:55:38 pm]
Pixie: A lightweight HTML...
by
Tomxe
[June 08, 2026, 01:48:30 pm]
EasyLazFreeType Bug?
by
Tommi
[June 08, 2026, 10:57:47 am]
embed .jpg file into .pp ...
by
Thaddy
[June 08, 2026, 09:51:38 am]
Call SetLength from assem...
by
Thaddy
[June 08, 2026, 09:00:36 am]
TPlaysound problem Ubuntu...
by
jamie
[June 08, 2026, 12:57:32 am]
Portable verion of FPC an...
by
Martin_fr
[June 08, 2026, 12:26:26 am]
Release ray4laz 6.0
by
lazarusprogrammer
[June 07, 2026, 08:02:14 pm]
Where is Lazarus config
by
n7800
[June 07, 2026, 07:49:03 pm]
Auto-vectorization hint/w...
by
Ten_Mile_Hike
[June 07, 2026, 07:31:42 pm]
Splitting Picture into Qu...
by
Dzandaa
[June 07, 2026, 06:16:22 pm]
Lazarus 4.99 - New featur...
by
Martin_fr
[June 07, 2026, 05:46:05 pm]
GDB 17 for Windows
by
Martin_fr
[June 07, 2026, 04:45:35 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: Negative offset (Read 835 times)
LemonParty
Hero Member
Posts: 527
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: 2496
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
Hero Member
Posts: 527
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