<div dir="auto"><div><div class="gmail_quote"><div dir="ltr">Michael Van Canneyt <<a href="mailto:michael@freepascal.org">michael@freepascal.org</a>> schrieb am Do., 25. Okt. 2018, 09:38:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
<br>
On Sat, 20 Oct 2018, Simon Kissel wrote:<br>
<br>
> - Make Exception handling, TLS etc use the infrastructure that<br>
> libpthread is providing<br>
<br>
TLS is handled already by libpthread. I doubt you will gain much there.<br>
<br>
However, Exception handling is a problem. There are 2 possible ways ahead:<br>
- DWARF exception handling as mentioned by Sven.<br>
- Port SEH to be cross platform, this is the approach as taken by Kylix.<br>
Kilyx has a small rtlunwind library that mimics the needed run-time functionality<br>
offered by Windows.<br>
<br>
Conceivably, it can be duplicated. wine probably has such a library which<br>
can be used as an inspiration.<br>
<br>
The needed compiler infrastructure for SEH already exists, so this is most likely<br>
the fastest way to proceed.<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">I'm against emulating SEH. Better implement DWARF exceptions. The infrastructure that was created for SEH inside the compiler should help nevertheless. </div><div dir="auto"><br></div><div dir="auto">Regards, </div><div dir="auto">Sven </div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
</blockquote></div></div></div>