[fpc-devel] LLVM backend Pascal bindings?

2021-11-13 Thread Ryan Joseph via fpc-devel
As a fun weekend project I wanted to follow along with the tutorial at https://llvm.org/docs/tutorial/index.html but I noticed the API in in C++ so it wouldn't be possible to do this in Pascal without at least some plain C API. How did Free Pascal/Jonas accomplish this in the LLVM backend? Re

Re: [fpc-devel] Optimisation and thread safety

2021-11-13 Thread J. Gareth Moreton via fpc-devel
I figured that if you read from memory, and then write to memory, it's not safe to read from the same memory block again because the write address could be equal to (or overlap) the read memory and it's impossible to rule that out if different registers are used. It might be okay if the referen

Re: [fpc-devel] Optimisation and thread safety

2021-11-13 Thread Florian Klämpfl via fpc-devel
> Am 13.11.2021 um 00:55 schrieb J. Gareth Moreton via fpc-devel > : > > Hi everyone, > > I have a question when it comes to optimising memory reads and writes. What > are the rules for FPC when it comes to writing to memory and then reading > from it later within a single subroutine? For e

Re: [fpc-devel] Optimisation and thread safety

2021-11-13 Thread Michael Van Canneyt via fpc-devel
On Fri, 12 Nov 2021, J. Gareth Moreton via fpc-devel wrote: Hi everyone, I have a question when it comes to optimising memory reads and writes.  What are the rules for FPC when it comes to writing to memory and then reading from it later within a single subroutine? For example, say I had t

Re: [fpc-devel] Cross-compiling and warnings from linker

2021-11-13 Thread Sergey Organov via fpc-devel
Jonas Maebe via fpc-devel writes: > On 2021-11-12 10:20, Pierre Muller via fpc-devel wrote: >> Le 10/11/2021 à 21:19, Sergey Organov via fpc-devel a écrit : >>> Hello, >>> Using cross-compiler from x86-linux to arm-linux, I keep getting a lot >>> of warnings at the linking stage of my programs, i