Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

Re^7: Module::Install hacking

by bulk88 (Priest)
on Sep 15, 2012 at 05:38 UTC ( #993836=note: print w/replies, xml ) Need Help??

in reply to Re^6: Module::Install hacking
in thread Module::Install hacking

So ABI breakage and DLL hell between different builds of Mingw/GCC. Well what else could it be after looking at libgcc dll's export table other than GCC exception handling? div by zero or x87 FP exception? :-) I really really wish Mingw would has MS compatible SEH. Writing Win32 compiler-portable Perl XS/C code around bad C code beyond my control using IsBadReadPtr/IsBadWritePtr is cumbersome and those 2 will never catch STATUS_ILLEGAL_INSTRUCTION for example.

Replies are listed 'Best First'.
Re^8: Module::Install hacking
by BrowserUk (Pope) on Sep 15, 2012 at 08:01 UTC
    MS compatible SEH.

    I agree. I did come up with a "compatibility layer" -- nothing fancy just a couple of #defines -- that allowed me to use SEH in my unauthorised version of Devel::Size and compile it with MSVC & Mingw 32 & 64-bit without change.

    However, in the subsequent authorised version, they re-wrote all the exception handling claiming that it didn't work on gcc. No details given, so I can't talk to that.

    I do know that syphilis compiled it successfully with MinGW and it appeared to work okay. Admittedly, I didn't try to do anything complicated with the exceptions; just basically ignored them.

    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.

    RIP Neil Armstrong

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://993836]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2018-03-17 18:42 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (225 votes). Check out past polls.