Re: [fpc-devel] FPC 3.2.4-rc1 available

2025-06-21 Thread Adriaan van Os via fpc-devel
MacOS 14 with an M2. Regards, Adriaan van Os administrator% /usr/local/lib/fpc/3.2.2/ppca64 generics01.pas Free Pascal Compiler version 3.2.2 [2021/05/16] for aarch64 ... Compiling generics01.pas ... Assembling generics01 32 lines compiled, 0.5 sec 4 warning(s) issued 36 note(s) issued

Re: [fpc-devel] FPC 3.2.4-rc1 available

2025-06-21 Thread Adriaan van Os via fpc-devel
2.4-rc1.source.zip> Regards, Adriaan van Os ___ fpc-devel maillist - fpc-devel@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Re: [fpc-devel] FPC 3.2.4-rc1 available

2025-06-20 Thread Adriaan van Os via fpc-devel
a (patched) Lazarus 4.0, and it worked. Regards, Adriaan van Os ___ fpc-devel maillist - fpc-devel@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Re: [fpc-devel] macosx_version_min has been renamed to -macos_version_min

2024-11-02 Thread Adriaan van Os via fpc-devel
on to 11.0 to avoid issues by default for most people. Unfortunately, I now get ld: unknown option: -macos_version_min when building fpc from trunk on Mac OS 10.14. Regards, Adriaan van Os ___ fpc-devel maillist - fpc-devel@lists.freepascal

Re: [fpc-devel] RTL make shared

2024-10-29 Thread Adriaan van Os via fpc-devel
Sven Barth via fpc-devel wrote: Adriaan van Os via fpc-devel <mailto:fpc-devel@lists.freepascal.org>> schrieb am Di., 29. Okt. 2024, 15:47: The idea of building the RTL in a dynamic ibrary is to have one copy of the RTL threadvars, notably one copy of the _ExceptOb

[fpc-devel] RTL make shared

2024-10-29 Thread Adriaan van Os via fpc-devel
: _TC_$SYSINIT_$$_SYSINITENTRYINFORMATION in sysinit.o __stklen, referenced from: _SYSINIT_$$_FPC_SYSTEMMAIN$LONGINT$PPANSICHAR$PPANSICHAR in sysinit.o Any help building a dynamic RTL is much appreciated. Regards, Adriaan van Os ___ fpc

Re: [fpc-devel] RTL make shared

2024-10-29 Thread Adriaan van Os via fpc-devel
Sven Barth via fpc-devel wrote: Adriaan van Os via fpc-devel <mailto:fpc-devel@lists.freepascal.org>> schrieb am Di., 29. Okt. 2024, 11:29: Trying to build the FPC RTL as a dynamic library on MacOS (with make shared), I run into several problems I don't know when t

[fpc-devel] RTL make shared

2024-10-29 Thread Adriaan van Os via fpc-devel
- when I build with fpc-3.3.1 trunk I get an additional error that ppumove doesn't know the -P flag. Doing the link by hand, the ld unnown symbol errors remain. Regards, Adriaan van Os ___ fpc-devel maillist - fpc-devel@lists.freepascal.org

Re: [fpc-devel] CaptureBacktrace

2024-10-07 Thread Adriaan van Os via fpc-devel
Also, there is no symbol information (on MacOS). Is this because of the separate .dSYM file ? But if I call backtrace_symbols in stead of DUmp_Stack, I do get symbol names Regards, Adriaan van Os main program 0 Test0x00011560 P$MBTESTBACKTRACE2_

Re: [fpc-devel] CaptureBacktrace

2024-10-06 Thread Adriaan van Os via fpc-devel
Karoly Balogh via fpc-devel wrote: Hi, On Fri, 4 Oct 2024, Adriaan van Os via fpc-devel wrote: My question now is if there is a reason why FPC doesn't call backtrace (see man backtrace) on Linux and Unix (including MacOS) platforms ? It seems this is a relatively recent addition to

[fpc-devel] CaptureBacktrace

2024-10-04 Thread Adriaan van Os via fpc-devel
s and NSException.callStackSymbols can be used here (on MacOS) ? Regards, Adriaan van Os ___ fpc-devel maillist - fpc-devel@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Re: [fpc-devel] Freeze of fixes for 3.2.4 by 9th June

2024-06-03 Thread Adriaan van Os via fpc-devel
Florian Klämpfl via fpc-devel wrote: To get finally forward with the 3.2.4 release, fixes will be frozen by 9th June, so if there are some last second cherry picks needed, now it’s time to speak up :) 0038492: $setc regression; Regards, Adriaan van Os

Re: [fpc-devel] Compiler for MacOS

2024-02-08 Thread Adriaan van Os via fpc-devel
Jonas Maebe via fpc-devel wrote: On 07/02/2024 15:35, Adriaan van Os via fpc-devel wrote: Unfortunately, there are some issues that make FPC at the moment unuseable on MacOS ... for people who use macpas mode. Indeed. But that raises the question why SetExceptionMask was added to macpas.pp

[fpc-devel] Compiler for MacOS

2024-02-07 Thread Adriaan van Os via fpc-devel
the darwin-aarch64 crash or some feedback or write access to the compiler sources (under my new email address adri...@adriaan.biz) to fix the issue myself. The only other option I see is to fork the compiler and to make it available for download on my website. Regards, Adriaan van Os

Re: [fpc-devel] Wrong debug info when using clang backend

2023-12-16 Thread Adriaan van Os via fpc-devel
Jonas Maebe via fpc-devel wrote: On 14/12/2023 08:41, Adriaan van Os via fpc-devel wrote: Jonas Maebe via fpc-devel wrote: I'd rather not introduce directives that are specific to clang, and especially none only apply to the next loop. We don't have a single directive yet that

Re: [fpc-devel] Wrong debug info when using clang backend

2023-12-14 Thread Adriaan van Os via fpc-devel
ke their Pascal equivalents valid, not for the next for-loop, but until-otherwise. Then, a loop can be explicitely targeted with {$push ...} and {$pop}. Regards, Adriaan van Os ___ fpc-devel maillist - fpc-devel@lists.freepascal.org https://lists.freepas

Re: [fpc-devel] Wrong debug info when using clang backend

2023-12-13 Thread Adriaan van Os via fpc-devel
improvement capabilities that we get for free with the llvm back-end. Regards, Adriaan van Os {$pragma vectorize ON} {$pragma vectorize OFF} {$pragma vectorize WIDTH=n} {$pragma vectorize TYPE=FIXED} {$pragma vectorize TYPE=SCALABLE} {$pragma vectorize PREDICATE=ON} {$pragma vectorize PREDICATE=OFF

Re: [fpc-devel] Wrong debug info when using clang backend

2023-12-09 Thread Adriaan van Os via fpc-devel
Jonas Maebe via fpc-devel wrote: On 09/12/2023 10:07, Adriaan van Os via fpc-devel wrote: Another question. Is there a way to put pragmas in fpc source code to be passed to CLang, eg. those mentioned here <https://llvm.org/docs/Vectorizers.html> ? That would gain a lot, at little cost

Re: [fpc-devel] Wrong debug info when using clang backend

2023-12-09 Thread Adriaan van Os via fpc-devel
in fpc source code to be passed to CLang, eg. those mentioned here <https://llvm.org/docs/Vectorizers.html> ? That would gain a lot, at little cost. Regards, Adriaan van Os ___ fpc-devel maillist - fpc-devel@lists.freepascal.org https://lists

Re: [fpc-devel] Wrong debug info when using clang backend

2023-12-07 Thread Adriaan van Os via fpc-devel
Just out of curiosity: Clang is by fpc used as a driver program, as it is asier to call it than tools like llc, opt and llvm-linker ? Regards, Adriaan van Os ___ fpc-devel maillist - fpc-devel@lists.freepascal.org https://lists.freepascal.org/cg

Re: [fpc-devel] Interesting short article about optimisation

2023-11-27 Thread Adriaan van Os via fpc-devel
Regards, Adriaan van Os ___ fpc-devel maillist - fpc-devel@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Re: [fpc-devel] Bug #38492

2023-11-10 Thread Adriaan van Os via fpc-devel
unofficial fpc-3.2.x release on my website ? Regards, Adriaan van Os ___ fpc-devel maillist - fpc-devel@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Re: [fpc-devel] Bug #38492

2023-11-10 Thread Adriaan van Os via fpc-devel
Martin Frb via fpc-devel wrote: On 10/11/2023 10:49, Adriaan van Os via fpc-devel wrote: Sorry, but I am looking for a diff for fpc bug #38492. Mantis says "'Fixed in Revision: 38492" which looks like a mistake, as 38492 is the bug number. Also gitlab reports fix #11ef1d17 whi

[fpc-devel] Bug #38492

2023-11-10 Thread Adriaan van Os via fpc-devel
Sorry, but I am looking for a diff for fpc bug #38492. Mantis says "'Fixed in Revision: 38492" which looks like a mistake, as 38492 is the bug number. Also gitlab reports fix #11ef1d17 which is instead a register allocation fix. Is the fix already in fpc-3.2 fixes ? Regards,

[fpc-devel] linkframework ImageKit

2023-09-24 Thread Adriaan van Os via fpc-devel
ImageKit.pas in the MacOS Cocoa headers has {$linkframework ImageKit} but this produces an linking error as ImageKit is a subframework of Quartz.framework. Not sure where to report this. Regards, Adriaan van Os ___ fpc-devel maillist - fpc

Re: [fpc-devel] Unicode RTL

2023-07-28 Thread Adriaan van Os via fpc-devel
Michael Van Canneyt via fpc-devel wrote: Hello, I have just completed phase one of the "Unicode RTL" effort. I object to the name "Unicode" RTL. Where people talk about what they call "Unicode" they usually mean UCS-16 or UTF-16 or UTF-16-mishandled-as-UCS

Re: [fpc-devel] Curious about the effect of all the new optimizations....

2023-03-01 Thread Adriaan van Os via fpc-devel
a nonsense video. Regards, Adriaan van Os ___ fpc-devel maillist - fpc-devel@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Re: [fpc-devel] FPC 3.3.1 crash when getting interface from object

2023-02-05 Thread Adriaan van Os via fpc-devel
p ahead to the asm code below. I am having weird problems with GetInterface too, that seem to depend and the surrounding code. That is, with trivial changes of the code, GetInterface works or crashes. Regards, Adriaan van Os ___ fpc-devel mail

Re: [fpc-devel] Question on constref

2023-02-02 Thread Adriaan van Os via fpc-devel
Sven Barth wrote: Adriaan van Os via fpc-devel <mailto:fpc-devel@lists.freepascal.org>> schrieb am Do., 2. Feb. 2023, 02:47: Sven Barth via fpc-devel wrote: > There is no full documentation for that parameter modifier (someone > might want to file a bug report for

Re: [fpc-devel] Question on constref

2023-02-01 Thread Adriaan van Os via fpc-devel
he most efficient method) is compatibility with Delphi in delphi compiler mode. If that's true, which I don't know, it should be documented. Otherwise, "const" will continue to puzzle programmers - and in a year we will have the same discussion again. Regards, Adriaa

Re: [fpc-devel] Question on constref

2023-02-01 Thread Adriaan van Os via fpc-devel
Hairy Pixels via fpc-devel wrote: On Feb 2, 2023, at 4:38 AM, Sven Barth wrote: Which types are passed by-value or by-reference when using const is determined by the size of the record and the types of the fields based on whatever the corresponding ABI defines (e.g. the x86_64 Sys V ABI is

Re: [fpc-devel] Question on constref

2023-02-01 Thread Adriaan van Os via fpc-devel
of version 2.5.1 of the compiler. === doc end === On debate, see FPC issue 17442. Regards, Adriaan van Os ___ fpc-devel maillist - fpc-devel@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Re: [fpc-devel] Question on constref

2023-02-01 Thread Adriaan van Os via fpc-devel
Hairy Pixels via fpc-devel wrote: On Feb 1, 2023, at 5:56 PM, Adriaan van Os via fpc-devel wrote: "A const parameter is be passed by reference or (for small-sized parameters) by value, whatever is most efficient. A constref parameter is guaranteed to be passed by reference in all

Re: [fpc-devel] Question on constref

2023-02-01 Thread Adriaan van Os via fpc-devel
astructure is larger than a small number of bytes). Regards, Adriaan van Os ___ fpc-devel maillist - fpc-devel@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Re: [fpc-devel] Unicode RTL for FPC

2023-01-09 Thread Adriaan van Os via fpc-devel
reminds me of the Turbo assembler, which had a mode to be compatible with the bugs in the Microsoft assembler 😃 😃 . Regards, Adriaan van Os ___ fpc-devel maillist - fpc-devel@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc

Re: [fpc-devel] Unicode RTL for FPC

2023-01-06 Thread Adriaan van Os via fpc-devel
"UTF-16-treated-as-UCS-2". For me, UTF-16 is the dumbest thing ever invented in computing. So I shiver at the thought of a "Unicode" RTL. We really should use UTF-8, as most open source projects do. Regards, Adriaan van Os _

Re: [fpc-devel] Happy New Year!

2023-01-02 Thread Adriaan van Os via fpc-devel
J. Gareth Moreton via fpc-devel wrote: Happy New Year everybody! Free Pascal lives on! I wish you Happy New Optimizations 😃 Adriaan van Os ___ fpc-devel maillist - fpc-devel@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman

Re: [fpc-devel] Minor doc error about "const param"

2021-12-24 Thread Adriaan van Os via fpc-devel
parameter. Regards, Adriaan van Os ___ fpc-devel maillist - fpc-devel@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Re: [fpc-devel] Finally fixed that MOVZX/SX optimisation!

2020-02-20 Thread Adriaan van Os
and explicit user coding ? Regards, Adriaan van Os ___ fpc-devel maillist - fpc-devel@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

[fpc-devel] vm_kernel_page_size

2020-02-03 Thread Adriaan van Os
Undefined symbols for architecture x86_64: "_vm_kernel_page_size", referenced from: _SYSTEM_$$_DARWIN_INIT_PAGE_SIZE in system.o Reported as <https://bugs.freepascal.org/view.php?id=36653> Regards, Adriaan van Os _

[fpc-devel] vm_kernel_page_size

2020-02-03 Thread Adriaan van Os
age_size else } darwin_page_size:=vm_page_size; end; Is this a bug ? Caused by @vm_kernel_page_size ? Regards, Adriaan van Os ___ fpc-devel maillist - fpc-devel@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Re: [fpc-devel] Android 64-bit

2020-01-26 Thread Adriaan van Os
Yuriy Sydorov wrote: Support for aarch64-android and x86_64-android targets are present in FPC 3.2 and trunk. The support is stable, on par with 32-bit android targets. OK, thanks for the various replies. Regards, Adriaan van Os ___ fpc-devel

Re: [fpc-devel] Android 64-bit

2020-01-25 Thread Adriaan van Os
to be an issue for Android. I meant ARM and x86 64 native executables for Android. Some time ago, I can't remember exactly when, compiling for 64-bit Android wasn't supported yet (or at least not for ARM) and my understanding then was that this was under development. Regards,

[fpc-devel] Android 64-bit

2020-01-25 Thread Adriaan van Os
Any news on the 64-bit compiler for Android ? What is the current status ? Regards, Adriaan van Os ___ fpc-devel maillist - fpc-devel@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Re: [fpc-devel] LLVM code generator

2018-12-27 Thread Adriaan van Os
Jonas Maebe wrote: On 2018-12-02 11:26, Jonas Maebe wrote: The LLVM version of the code generator has been significantly improved in the mean time: Good work ! Regards, Adriaan van Os ___ fpc-devel maillist - fpc-devel@lists.freepascal.org

Re: [fpc-devel] The 15k bounty: Optimizing executable speed for Linux x86 / LLVM

2018-11-24 Thread Adriaan van Os
book on programming, learning to write better code. Adriaan van Os ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Re: [fpc-devel] The 15k bounty: Optimizing executable speed for Linux x86 / LLVM

2018-11-23 Thread Adriaan van Os
n a linear fashion, so to say... You didn't answer any of my questions. The goal is to get the code faster, isn't it. Or are you writing an academic thesis on compilers ? Regards, Adriaan van Os ___ fpc-devel maillist -

Re: [fpc-devel] The 15k bounty: Optimizing executable speed for Linux x86 / LLVM

2018-11-23 Thread Adriaan van Os
ing another way, having a precise look at the source code ? Did you profile it ? What sort of work does the code do ? How are the threads synchronized ? What data structures are used ? I don't take "the compiler is so bad" without an answer to th

Re: [fpc-devel] targetandroid

2018-06-18 Thread Adriaan van Os
ems with Xcode 7. Regards, Adriaan van Os ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Re: [fpc-devel] targetandroid

2018-06-18 Thread Adriaan van Os
It's this bug <http://bug-binutils.gnu.narkive.com/Cd0LBSs7/bug-binutils-19311-new-arm-linux-as-build-on-mac-os-x-with-xcode7-fails-to-assemble-code-from> Regards, Adriaan van Os ___ fpc-devel maillist - fpc-devel@lists.freepasc

Re: [fpc-devel] targetandroid

2018-06-17 Thread Adriaan van Os
Jonas Maebe wrote: On 17/06/18 21:47, Adriaan van Os wrote: But why would arm-linux-androideabi-as behave differently on OS X 10.12.6 with Xcode 8.3.3 than on OS X 10.10 ? ? Or could it be that the assembly files produced by ppcrossarm are different ? If you add CROSSOPT="-a", the

Re: [fpc-devel] targetandroid

2018-06-17 Thread Adriaan van Os
Jonas Maebe wrote: On 17/06/18 18:00, Adriaan van Os wrote: What I suspect is that, when building the rtl for android, fpcrossarm calls the installed clang assembler rather than the (separately built) arm-linux-androideabi-as. That would surprise me. With -vx, you can see which external

Re: [fpc-devel] targetandroid

2018-06-17 Thread Adriaan van Os
-readelf arm-linux-androideabi-strip arm-linux-androideabi-as arm-linux-androideabi-ld arm-linux-androideabi-objdump arm-linux-androideabi-size Regards, Adriaan van Os ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org

Re: [fpc-devel] targetandroid

2018-06-15 Thread Adriaan van Os
; you can use a newer version from Fink/MacPorts/Brew or a self-compiled one), you could try adding more workarounds to Tx86AppleGNUAssembler in compiler/x86/agx86att.pas This seems to be a darwin-as issue indeed as building with the clang assembler does work. Thanks for the reply. Regards,

Re: [fpc-devel] targetandroid

2018-06-13 Thread Adriaan van Os
Karoly Balogh (Charlie/SGR) wrote: Hi, On Wed, 13 Jun 2018, Adriaan van Os wrote: Yuriy Sydorov wrote: No special version is needed, use 3.0.4 release sources or trunk sources. I have fpc-3.0.4 installed on OS X 10.6.8. In a separate 3.0.4 sources folder, I issue make clean

Re: [fpc-devel] targetandroid

2018-06-13 Thread Adriaan van Os
Yuriy Sydorov wrote: On 6/4/2018 2:51 PM, Adriaan van Os wrote: Yuriy Sydorov wrote: No special version is needed, use 3.0.4 release sources or trunk sources. I have fpc-3.0.4 installed on OS X 10.6.8. In a separate 3.0.4 sources folder, I issue make clean crossall crossinstall OS

Re: [fpc-devel] targetandroid

2018-06-04 Thread Adriaan van Os
oid-developers.googleblog.com/2017/12/improving-app-security-and-performance.html> Regards, Adriaan van Os ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Re: [fpc-devel] targetandroid

2018-06-04 Thread Adriaan van Os
gards, Adriaan van Os ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

[fpc-devel] targetandroid

2018-05-30 Thread Adriaan van Os
for iOS ARM also. What is the status now ? Can I use a from-the-shelf 3.0.2, 3.0.3 or 3.0.4 compiler for the same purpose ? Thanks, Adriaan van Os ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman

Re: [fpc-devel] Vectorization

2018-02-07 Thread Adriaan van Os
J. Gareth Moreton wrote: Hi everyone, After a lot of work, I have implemented 'vectorcall' into Win64, and made a patch for Lazarus to recognise the keyword in the IDE and highlight it accordingly. Thanks ! Adriaan van Os ___ fpc-deve

Re: [fpc-devel] Data alignment feature

2018-01-30 Thread Adriaan van Os
alignment on entry. Yes, that's the issue I hinted on. Regards, Adriaan van Os ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Re: [fpc-devel] Data alignment feature

2018-01-26 Thread Adriaan van Os
x27;s good news. Can you give a small code example ? And I would suggest to add test-programs (checking the addeess of aligned global, heap and stack variables) to the fpc test-suite, Regards, Adriaan van Os ___ fpc-devel maillist - fpc-devel@lists

Re: [fpc-devel] Data alignment feature

2018-01-26 Thread Adriaan van Os
manager. Or at least a runtime-function that gets aligned memory, like <http://pubs.opengroup.org/onlinepubs/009695399/functions/posix_memalign.html> Regards, Adriaan van Os ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://li

Re: [fpc-devel] Vectorization

2017-12-23 Thread Adriaan van Os
, Adriaan van Os ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Re: [fpc-devel] Vectorization

2017-12-12 Thread Adriaan van Os
nce-tools-for-software-developers-intel-compiler-options-for-sse-generation-and-processor-specific-optimizations> Intel high-performance libraries use runtime-dispatching, e.g. for IPP <https://software.intel.com/en-us/node/722780> Regards, Ad

Re: [fpc-devel] Vectorization

2017-12-12 Thread Adriaan van Os
align with size 0 causes memory corruption ! For size 0, malloc can be used (or a nil pointer returned). Note that 64-bit AVX-512 <https://software.intel.com/en-us/node/523777> instructions require 64-byte alignment. Regards, Adriaan van Os _

Re: [fpc-devel] Vectorization

2017-12-12 Thread Adriaan van Os
due to arithmetic unit pipelines • Use of hardware features such as the SIMD arithmetic units, where appropriate Regards, Adriaan van Os ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Re: [fpc-devel] Vectorization

2017-12-11 Thread Adriaan van Os
(svn) compiler (and what not) as the report is from some time ago. Regards, Adriaan van Os ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Re: [fpc-devel] Vectorization

2017-12-11 Thread Adriaan van Os
ore I begin, does FPC support any kind of vectorisation already? If it does I haven't been able to find it yet, and I don't want to end up reinventing the wheel. See e.g. <https://bugs.freepascal.org/view.php?id=27870> Regards, Adriaan van Os

Re: [fpc-devel] Free Pascal/Delphi compatibility cross-tests

2017-03-28 Thread Adriaan van Os
sion_floating-point_format> for any compiler. Or did you mean the Exponent function-return, not the internal format ? Then, my comment above is wrong. Anyway, I feel that compilers should follow the IEE-754 and ISO/IEC 10967 <https://en.wikipedia.org/wiki/ISO/IEC_10967> standards. Re

Re: [fpc-devel] Free Pascal/Delphi compatibility cross-tests

2017-03-28 Thread Adriaan van Os
Dmitriy Pomerantsev wrote: Hello everyone. 1. Difference in implementation. Â For example, in Delphi, Exponent has a bias "For single precision floating-point values, the bias is 127." (http://docwiki.embarcadero.com/Libraries/Tokyo/en/System.SysUtils.TsingleHelper.Exponent), Free Pascal d

Re: [fpc-devel] Staticaly link C/C++ library (.lib) into FreePascal on Windows

2017-03-14 Thread Adriaan van Os
ttp://adriaan.biz/intel/ipp.pas.zip>. I do link with statically with success on Mac OS X. Regards, Adriaan van Os ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Re: [fpc-devel] resources on non-windows platform

2016-11-22 Thread Adriaan van Os
the MacOS version info or the plist, but that needs to be setup only once. Yes, this is very much like C, I don't like that either, but it does work. Regards, Adriaan van Os ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Re: [fpc-devel] Managed types and reference counts revisited

2016-08-17 Thread Adriaan van Os
Jonas Maebe wrote: Adriaan van Os wrote on Wed, 17 Aug 2016: Either I am looking wrong (and missing the point) or the text at <http://www.freepascal.org/docs-html/ref/refse91.html> (a follow-up on <http://bugs.freepascal.org/view.php?id=26874>) is incorrect. Doesn't the

Re: [fpc-devel] Managed types and reference counts revisited

2016-08-17 Thread Adriaan van Os
Thanks for the clarification. I suggest the doc page <http://www.freepascal.org/docs-html/ref/refse91.html> to be changed accordingly. And also the test program there. Regards, Adriaan van Os ___ fpc-devel maillist - fpc

[fpc-devel] Managed types and reference counts revisited

2016-08-17 Thread Adriaan van Os
t parameters, like var parameters, do nothing, there is no reference count decrease, therefore no dispose of classes (implementing an interface) even when the reference count is 0 ? Regards, Adriaan van Os ___ fpc-devel maillist - fpc-devel@lists.freepasca

Re: [fpc-devel] RTTI

2015-11-27 Thread Adriaan van Os
Jonas Maebe wrote: * LLVM does not support the Borland "register" calling convention, so i386 support will be impossible until someone adds that to LLVM Unless it would be an LLVM-specific i386 target without the register calling convention ? Regards, Adri

Re: [fpc-devel] Enable LLVM?

2015-07-14 Thread Adriaan van Os
frame d) trampolines for interface methods Ehw, trampolines. They requires executable stacks. Is there a possibility to pass activation frames instead or apply lambda/lifting ? Regards, Adriaan van Os ___ fpc-devel maillist - fpc-devel@lists

Re: [fpc-devel] ref count issue with out param

2015-06-13 Thread Adriaan van Os
Martin Frb wrote: But "out" param have no such documentation. Also see the thread "Reference counting interface objects" from October 2014 and PR 26874 <http://bugs.freepascal.org/view.php?id=26874> Regards, Adriaan van Os

Re: [fpc-devel] bitwise shift oddity a << b

2015-05-19 Thread Adriaan van Os
the CPU doing it wrong. That is probably the most practical solution. But that doesn't make it less ludicrous. Regards, Adriaan van Os ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinf

Re: [fpc-devel] bitwise shift oddity a << b

2015-05-19 Thread Adriaan van Os
ts are always correct too (for any N >= 0). And then, introducing a difference between shifting N bits and shifting Nx1 bits is absurd. Not much thought went into that C-standard (nor in anything related to C). Regards, Adriaan van Os ___

Re: [fpc-devel] bitwise shift oddity a << b

2015-05-19 Thread Adriaan van Os
The right operand of a bitwise shift is a count, a real-world number of bits. A negative number doesn' t make sense and must regarded as an error. So yes, emitting range checking is the right idea. We should do better in Pascal than in C . Regards, Adriaan van Os __

Re: [fpc-devel] bitwise shift oddity a << b

2015-05-14 Thread Adriaan van Os
Martin Frb wrote: What is supposed to happen if the 2nd argument is negative? Also see <http://bugs.freepascal.org/view.php?id=17710>. Regards, Adriaan van Os ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepasc

Re: [fpc-devel] BOOL

2014-12-15 Thread Adriaan van Os
LSE instead of TRUE. An interesting example ! It clearly shows the dangers of a language that isn't strictly typed and thus doesn't have implicit type conversions. Regards, Adriaan van Os ___ fpc-devel maillist - fpc-devel@lists.freepascal.

Re: [fpc-devel] BOOL

2014-12-15 Thread Adriaan van Os
another type, VARIANT_BOOL ... Regards, Adriaan van Os ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Re: [fpc-devel] BOOL

2014-12-14 Thread Adriaan van Os
uot; works as one would except. Regards, Adriaan van Os ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Re: [fpc-devel] BOOL sorry

2014-12-14 Thread Adriaan van Os
Sorry for the multiple posts, my email program indicated "failure" on send. Regards, Adriaan van Os ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Re: [fpc-devel] BOOL

2014-12-14 Thread Adriaan van Os
Marco van de Voort wrote: In our previous episode, Adriaan van Os said: reveals 0 for False and -1 for True, where I had expected 0 for False and 1 f according to <http://msdn.microsoft.com/en-us/library/eke1xt9y.aspx> the same respectively in Visual Studio 2013. There is a C (99?) boo

Re: [fpc-devel] BOOL

2014-12-14 Thread Adriaan van Os
Marco van de Voort wrote: In our previous episode, Adriaan van Os said: reveals 0 for False and -1 for True, where I had expected 0 for False and 1 f according to <http://msdn.microsoft.com/en-us/library/eke1xt9y.aspx> the same respectively in Visual Studio 2013. There is a C (99?) boo

Re: [fpc-devel] BOOL

2014-12-14 Thread Adriaan van Os
Marco van de Voort wrote: In our previous episode, Adriaan van Os said: reveals 0 for False and -1 for True, where I had expected 0 for False and 1 f according to <http://msdn.microsoft.com/en-us/library/eke1xt9y.aspx> the same respectively in Visual Studio 2013. There is a C (99?) boo

[fpc-devel] BOOL

2014-12-14 Thread Adriaan van Os
to use -1 for True (unless maybe if Delphi has -1 for True, but then it would apply to mode Delphi only). Regards, Adriaan van Os ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Re: [fpc-devel] Windows DirectX9

2014-12-08 Thread Adriaan van Os
could not locate DirectX in it. http://sourceforge.net/p/lazarusvideoutilities/code/HEAD/tree/trunk/Packages/ Never mind, that link works, thanks. Regards, Adriaan van Os ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepasca

Re: [fpc-devel] Windows DirectX9

2014-12-07 Thread Adriaan van Os
e similar approaches (e.g. Python and Ruby if I remember correctly). How does this work ? Does one assemble a package, put it on a server and then submit the URL ? Regards, Adriaan van Os ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http:/

[fpc-devel] _wcsicmp solved

2014-12-04 Thread Adriaan van Os
found WideCompareText after sending my message. Regards, Adriaan van Os ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

[fpc-devel] _wcsicmp

2014-12-04 Thread Adriaan van Os
driaan van Os ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Re: [fpc-devel] Windows DirectX9

2014-11-28 Thread Adriaan van Os
servers ? But how are they synced with compiler changes ? Who creates and maintains them ? I will note that DirectX Pascal bindings do seem to be distributed with Delphi. Regards, Adriaan van Os ___ fpc-devel maillist - fpc-devel@lists.f

[fpc-devel] Windows DirectX9

2014-11-28 Thread Adriaan van Os
nclude packages like these with FPC (or not) ? The license is Mozilla Public License 1.1. Regards, Adriaan van Os ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Re: [fpc-devel] RTL: high CPU load in heap manager

2014-11-11 Thread Adriaan van Os
ealloc on Windows (with the system heap manager) extremely ineffcient. Regards, Adriaan van Os ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Re: [fpc-devel] Masm

2014-11-08 Thread Adriaan van Os
Tomas Hajny wrote: On Fri, November 7, 2014 14:35, Adriaan van Os wrote: . . I still have to investigate the internal error 200602232. Have you tried Pierre's suggestion of testing it with the external linker Yes, that was the first I tried. No success. I am now experimenting

Re: [fpc-devel] Masm

2014-11-08 Thread Adriaan van Os
Dmitry Boyarintsev wrote: On Fri, Nov 7, 2014 at 12:55 PM, Adriaan van Os <mailto:f...@microbizz.nl>> wrote: (to my astonishment Xcode even installs nasm). Just in case, you find this interesting: I saw that and wondered if nasm can be used with FPC on Mac OS X. What is the

  1   2   >