WIP: Apple Silicon -- possible changes to TdiExtFunction.c#2882
WIP: Apple Silicon -- possible changes to TdiExtFunction.c#2882mwinkel-dev wants to merge 8 commits intoMDSplus:alphafrom
Conversation
|
The only usages of this that I have ever seen are:
My feeling is that these are the only cases that we need to maintain. |
|
Josh recommended deleting the obsolete / broken code for the As an experiment, that portion of |
|
I'm hesitantly in favor of this as well, we can always add it back if we need. |
|
For the record, here is the experiment conducted with the existing |
|
Turns out portions of the Running that test on Ubuntu24 (x86-64) with the So now investigating why the automated tests pass 100% when leave the code "as is" or comment it out. True, the addition of the |
|
Experiments show that the Even if a pointer is returned (such as Therefore as per discussion with @WhoBrokeTheBuild, the The See PR #2877 for the details of the above changes. |
|
This change was included in PR #2877, so closing this. |
The MDSplus website claims that TDI's
EXT_FUNCTION()has three modes of operation. However, it appears that both the documentation and code are broken. Thus it is questionable if this routine should be ported to Apple Silicon.The three modes:
BUILD_CALL(aka->), segfaults on Ubuntu22 x86-64EXT_FUNCTION page
Here are the options (listed in order of recommendation):
a) Leave "as is" = executes *.fun files A-OK
b) delete all code associate with 2).
c) fix all three modes and port to Apple Silicon = however 2) has probably been broken for years, so why fix it and duplicate what BUILD_CALL already does?
If we choose option c), then the libffi code would be something along the lines of the WIP draft.