Repository navigation
Replies: 9 comments 12 replies
|
Agreed on the substance. I checked: under What ties
Each target that switches still needs the two-phase bootstrap (an older compiler can't build |
|
And then what is the status of gcc and LLVM backends? |
|
The EH scheme has to be chosen per build, because it's baked into the generated code: I agree that "walker" and "frames" are separate questions. The EH scheme is decided at build time; |
I have one idea: we should go step by step Yes? No? |
|
The ex_stack stuff was working for the llvm (and gcc) backends a while ago. I would really like the llvm backend to have |
|
It works! C:\s\cm3\scripts\python3>\bin\amd64\cdb \cm3\bin\cm3 0:000> x cm3!*raise 00007ff6`c53487f0 cm3!RTException__Raise (struct T7A78C26A *) 0:000> uf 00007ff6 |
|
Can/should the EH model and/or backend be encoded in build_dir? AMD64_NT_LLVM_SJLJ I mean, sorry to say, there's actually far more approaches..than I've noticed be emphasized in discussions, but have perhaps been explored. Arguably this is better for bootstraping. |
|
You're right that quake conditionals like On ex_frame vs ex_stack for the bootstrap: I agree it hardly matters for a compiler that is thrown away. #1301 picks ex_stack only because every target in the Unix family already has it, and the bootstrap then matches what users build next. Abandoning ex_frame outright isn't open to us, though. The 32-bit targets, the integrated NT386 backend and (as demoitem says) the gcc backend all depend on it. The "fat" distribution — union every target's output, wrap each |
|
@hosking @demoitem Please let's endeavor to combine runtimes if possible? Also, record the exception handling runtime as a vtable or enum in every exception and have RTException.ResumeRaise call it? I realize having one runtime doesn't completely ease bootstrapping, since the choice permeates the code. |

Uh oh!
There was an error while loading. Please reload this page.
From what I can see, given Tony's already finished work, every use of C++ backend, can use "stack walker".
You don't really need any platform-specific code.
The platform-specific code we have, is only for dumping stack backtraces.
And I started writing this code and realized that having it, for actual exception handling, would be a bad idea, and destroy language interoperation.
All reactions