Code search results in this:That info is known to me and how I could write it.
https://gitlab.com/freepascal.org/fpc/source/-/blob/main/compiler/ngenutil.pas
so it's probably still relevant.
A quick look shows that this is always initialized in InsertMemorySizes, but in the 8086 and jvm platforms the function code is overridden, so it looks like except for these 2 cases.Those two are always cross-compiled platforms. I checked, and my code works to identify the compiler. Thanks again for looking into this.
[…] Is this always guaranteed to work? […]If isn’t documented, it doesn’t exist. I couldn’t find any documentation for __fpc_ident therefore it doesn’t exist. More specifically it may be removed without notice.
Probably only a compiler dev can answer this. I tested on my usual platforms.
OK, then I will not pursue it and keep it under the hood. IOW not document it any further.
I already came to that conclusion, but still it is a nice one-liner.. ;) 8) :-X