[fpc-devel] Maximum symbol length -- answer needed

Maciej Izak hnb.code at gmail.com
Fri Jun 22 20:46:38 CEST 2018


2018-06-22 20:42 GMT+02:00 Jonas Maebe <jonas at freepascal.org>:

> I would propose to switch all targets to use use ansistrings for symbol
> names.


+1

I was asking for this some time ago in core mailing list... As temporary
solution compiler can be compiled with

OPT="-dsymansistr"

Even without something special like closures FPC is unable to link many of
my Delphi code :

===begin example===
unit X2.Logic.Aggregates.PXI.Proxy.Implementations;

...

interface

type
  TPXI_Proxy_TGlobalVariablesAggregate = class(TPXI_Proxy,
IPXI_Proxy_TGlobalVariablesAggregate)
  protected

    function GetOPERATOR_LOGIN: PUTF8Char; CDecl;
===begin example===

this is because generated symbol is longer than 255 chars :

WRPR_$X2.LOGIC.AGGREGATES.PXI.PROXY.IMPLEMENTATIONS_$$_TPXI_PROXY_TGLOBALVARIABLESAGGREGATE_$_IPXI_PROXY_TGLOBALVARIABLESAGGREGATE_$_8_$_X2.LOGIC.AGGREGATES.PXI.PROXY.IMPLEMENTATIONS$_$TPXI_PROXY_TGLOBALVARIABLESAGGREGATE_$__$$_GETOPERATOR_LOGIN$$PUTF8CHA

-- 
Best regards,
Maciej Izak
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20180622/fa82e767/attachment.html>


More information about the fpc-devel mailing list