Re: [fpc-pascal] Visual studio code

2023-08-11 Thread Hairy Pixels via fpc-pascal
> On Aug 11, 2023, at 11:24 AM, Darius Blaszyk via fpc-pascal > wrote: > > Quick question for you all. Has anyone here worked with Visual Studio Code > for Free Pascal? I've got the Free Pascal Toolkit plugin up and running, but > I'm hitting a bit of a roadblock with setting up GDB debuggin

Re: [fpc-pascal] Visual studio code

2023-08-11 Thread Michael Van Canneyt via fpc-pascal
On Fri, 11 Aug 2023, Darius Blaszyk via fpc-pascal wrote: Quick question for you all. Has anyone here worked with Visual Studio Code for Free Pascal? I've got the Free Pascal Toolkit plugin up and running, but I'm hitting a bit of a roadblock with setting up GDB debugging. After installing

[fpc-pascal] Visual studio code

2023-08-11 Thread Darius Blaszyk via fpc-pascal
Quick question for you all. Has anyone here worked with Visual Studio Code for Free Pascal? I've got the Free Pascal Toolkit plugin up and running, but I'm hitting a bit of a roadblock with setting up GDB debugging. After installing GDB Debugger - Beyond I still cant debug my app upon setting a

Re: [fpc-pascal] Pointer question

2023-08-11 Thread Hairy Pixels via fpc-pascal
> On Aug 10, 2023, at 11:37 PM, Michael Van Canneyt via fpc-pascal > wrote: > > This is a very dirty trick to get the offset of a field in a record. > > Note that you're not dereferencing a type but a variable of type TAlignCheck > located > at memory address zero. The address of w (this is

[fpc-pascal] Volatile store usage

2023-08-11 Thread denisgolovan via fpc-pascal
Hi all I'd like to get some clarification about "volatile" intrinsic. https://wiki.freepascal.org/FPC_New_Features_Trunk#Support_for_.22volatile.22_intrinsic says just following: Support for "volatile" intrinsic Overview: A volatile intrinsic has been added to indicate to the code generato

Re: [fpc-pascal] LLVM crash

2023-08-11 Thread Jonas Maebe via fpc-pascal
On 10/08/2023 23:27, Benito van der Zander via fpc-pascal wrote: i tried to run my program under LLVM (from july fpc)  and it crashes? Program received signal SIGSEGV, Segmentation fault. 0x0042e5f1in SYSTEM_$$_SYSGETMEM_FIXED$QWORD$$POINTER() (gdb) bt #0 0x0042e5f1in SYSTEM_$$_S

Re: [fpc-pascal] LLVM LTO

2023-08-11 Thread Jonas Maebe via fpc-pascal
On 10/08/2023 17:06, Benito van der Zander via fpc-pascal wrote: I tried to use the LLVM Link-Time-Optimization, -Clflto I should update the wiki page. Under Debian 11, I can tell FPC to use gold with lto by specifying the following command line parameters: -Clflto -Clflto-no-system -k-fuse-l

Re: [fpc-pascal] Pointer question

2023-08-11 Thread Nikolay Nikolov via fpc-pascal
On 8/11/23 01:23, Hairy Pixels via fpc-pascal wrote: On Aug 10, 2023, at 2:18 PM, Michael Van Canneyt via fpc-pascal wrote: https://www.freepascal.org/docs-html/current/ref/refse15.html#x42-620003.4 This document doesn't really do a great enumerating all the operators so I'm not sure if t

[fpc-pascal] LLVM LTO

2023-08-11 Thread Benito van der Zander via fpc-pascal
Hallo, I tried to use the LLVM Link-Time-Optimization, -Clflto I compiled/installed fpc llvm with a separate prefix, which was already difficult to set up Then the default linker did not want to link it. The wiki says to use the gold linker. I do not know how to change the linker in fpc.cfg