Craze Frog wrote:
Quote:
Still, you wouldn't recommend someone not to use exception handling in C++ because writing the unwinder is difficult.
Actually, I would. If writing the tool to make things easier is harder than writing the program itself, I'd say just go ahead and write the program.
EH is more than a tool to make things easier. It's a way to do more elegant coding.
I think it's a programming paradigm
per se. A paradigm that consists on assuming that everything works without problems, while abstracting "abnormal" control flows with the help of the language.
It's undoubtedly a good idea to use EH on a kernel. You are still free not to use it if you really like error codes, or in fact don't want to implement the unwinder, of course. But saying "bah! don't use it" to someone who told you he wanted to use EH in the kernel doesn't make sense.
Quote:
Quote:
That's not that easy as "just going ahead".
Download the source to freepascal. It contains a folder called rtl. Inside that is platform specific code (organized in folders). You need to replace some of that code with your own.
I guess I
just need it. However, I don't share this algorithmic approach to OS coding. Sorry, but I need to dig straight down and understand how things work before believing I control them.
Thanks, anyway. I will take note.

(Of course, porting the official FPC rtl may be the eventual preferred solution, specially if that works.)
Laksen wrote:
GPC is a dead compiler. It might work, but it's not really being maintained.
Yes. I will use FPC. I like the idea of using the same language in the kernel and in user mode.
JJ