[fpc-pascal] question about _fpc_local_unwind

Sven Barth pascaldragon at googlemail.com
Fri Feb 2 19:43:09 CET 2018


Am 02.02.2018 18:12 schrieb "Matias Vara" <matiasevara at gmail.com>:

Hello,

2018-02-02 17:17 GMT+01:00 Sven Barth via fpc-pascal <
fpc-pascal at lists.freepascal.org>:

> Am 02.02.2018 15 <02%2002%2020%2018%2015>:50 schrieb "Matias Vara" <
> matiasevara at gmail.com>:
>
> Thanks for the answer, I will imitate in Toro the behavior of Win64.
>
>
> Maybe it wound be better if you try to use the i386-embedded or
> x86_64-embedded targets. The non-embedded targets are simply not geared
> towards usage on a bare platform
>
>
Thanks for the suggestion, I don't think I am able to do that since the
whole kernel  compiles well by using the Win64 target. So I am not planing
to change the target. I notice that the code is in rtl/win64/seh64.inc so I
am starting to try to understand it.

Most of the exception handling and unwinding is done by Windows, relying on
specific sections in the binary. You essentially picked one of the worst
targets to implement your kernel with...
Another plus of the embedded target: you can disable RTL features that you
don't need (e.g. RTTI, threading, etc.).

Regards,
Sven

Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20180202/9a6c99aa/attachment.html>


More information about the fpc-pascal mailing list