fpc-pascal · 2018-08
- Resource compilation47
the $R directive accepts resource scripts (RC) and compiles the RES file from it on demand. However, that only happens if the RES file does not exist - if it does, the…
- Will moving from due core CPU to 6 Core CPU of the same clock speed improve the speed of FPC compiling?15
I have been using Intel i3 Dual Core CPU @3.4 GHz for a few years. If I upgrade my computer and CPU to Intel Core i5 6-core @3.6GHz, will the speed of FPC compilation…
- Unbuffering I/O13
I think I've seen this question asked before, my apologies if this was recently. I've got two programs intended to be functionally identical, one in Perl and the other…
- Branch table12
Why the code below does exit gracefully without prints anything? Sure, it is for my poor knowledge of the assembler, but in some details, please... program branch;…
- Type helper for JNI pointers2
when you use JNI functions you always need to repeat "env" a lot: var javaClass: jclass; javaObj: jobject; begin //javaClass := ... javaObj :=…
- No breakpoint capability1
I updated to FPC 3.0.4 and can't get breakpoints to work. I get a "can't set breakpoint message" on all lines. I am in debug mode and have "generate debug information"…
- How is interface variable implemented?1
if I have this test program below: program testi; {$INTERFACES CORBA} uses sysutils; type IInterfaceA = interface procedure Increment ; end; { TObjectA…
- Reading AM2302 temp/humid sensor on RaspberryPi?13
I wonder if there are any demo projects around for reading the AM2302 DHT sensor on a RaspberryPi through FreePascal? Any links to sample code would be appreciated. I…
- Link with GCC object files2
Hi, I have a question. Is it possible to link FPC for Linux (PC and ARM) with GCC or other C++ object files? Andreas Berger
- Very slow startup of Frepascal programs on just one system4
I am experiencing very slow startup of all of my freepascal programs for windows on just one computer. Normally they all start pretty much instantly, but I just got a…
- FPC for linking only1
Is it possible to use FPC for linking only? (assuming that .ppu/.o files were created by fpc previously) using options -sh Generate script to link on host or -st …
- Docs: portability differences between Borland/FPC13
There is the old "Porting TP" document at <https://www.freepascal.org/port.var>, but it is rather incomplete (and probably on an older language level). It also covers…
- Auto vars (again)7
I had some free time recently so I decided as a learning experience to fork the compiler and implement the “auto var” idea that was mentioned a few weeks ago. What I…
- why can't we define class operator for old fashion object type, but ok for 'advanced record' type?18
I was trying to use a generic class TDictionary<T> with type T. This class has a method that compares a variable of T with another one. When I specialize a class using…
- tply: start conditions2
this is more of a generic lex question, but since plex doesn't support the flex extension that could easily fix it, I'm asking here. Take these lex rules:…
- Rebuilding RTL5
If I cd to the rtl directory in the fpc sources and run make they are compiled into the /rtl/units/x86_64-darwin directory. 1) How do I compile the ppc386 units? the…
- Operator overload bug18
I mentioned this as an aside a while ago but I don’t remember getting a response so I’d like to formally reintroduce the issue. Should I file a bug report for this…
- access violation?17
I was doing some testing today (Mac) and discovered that calling Free on a nil object didn’t cause a EAccessViolation exception. Why doesn’t that crash? var c:…
