Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal

fpc-pascal · 2018-08

  1. Resource compilation

    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…

    Martok, Bart, Benito van der Zander
    47
  2. Will moving from due core CPU to 6 Core CPU of the same clock speed improve the speed of FPC compiling?

    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…

    Dennis, Christo, Christo Crause
    15
  3. Unbuffering I/O

    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…

    Mark Morgan Lloyd, Henry Vermaak, Marc Santhoff
    13
  4. Branch table

    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;…

    Marco Borsari, Florian Klämpfl, Giuliano Colla
    12
  5. Type helper for JNI pointers

    when you use JNI functions you always need to repeat "env" a lot: var   javaClass: jclass;   javaObj: jobject; begin   //javaClass := ...   javaObj :=…

    Benito van der Zander, Andrew Haines
    2
  6. No breakpoint capability

    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"…

    john youngquist, Christo
    1
  7. How is interface variable implemented?

    if I have this test program below: program testi; {$INTERFACES CORBA} uses sysutils; type   IInterfaceA = interface      procedure Increment ;   end;   { TObjectA…

    Dennis, Sven Barth
    1
  8. Reading AM2302 temp/humid sensor on RaspberryPi?

    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…

    Bo Berglund, Alexander Hofmann, Mark Morgan Lloyd
    13
  9. Link with GCC object files

    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

    Andreas, Andreas Berger, Sven Barth
    2
  10. Very slow startup of Frepascal programs on just one system

    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…

    James, Marco van de Voort, Sven Barth
    4
  11. FPC for linking only

    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 …

    Dmitry Boyarintsev, leledumbo
    1
  12. Docs: portability differences between Borland/FPC

    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…

    Martok, Bart, Florian Klämpfl
    13
  13. Auto vars (again)

    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…

    Ryan Joseph, Jonas Maebe, Maciej Izak
    7
  14. why can't we define class operator for old fashion object type, but ok for 'advanced record' type?

    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…

    Dennis, Bo Berglund, Dennis Poon
    18
  15. tply: start conditions

    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:…

    Martok
    2
  16. Rebuilding RTL

    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…

    Ryan Joseph, Sven Barth
    5
  17. Operator overload bug

    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…

    Ryan Joseph, Ben Grasset, John Doe
    18
  18. access violation?

    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:…

    Ryan Joseph, Dmitry Boyarintsev, Mattias Gaertner
    17