| bencollver 05.07.2026, 01:12 |
Watcom 1.9 stack corruption after return from function (Developers) |
I am debugging the AWKA compiler with Watcom 1.9. The stack appears to be corrupted when returning from the awka_insertop() function in da.c. |
| jadoxa Queensland, Australia, 05.07.2026, 04:18 @ bencollver |
Watcom 1.9 stack corruption after return from function |
> The stack is different than it was before calling awka_insertop(), which is |
| bencollver 05.07.2026, 05:09 @ jadoxa |
Watcom 1.9 stack corruption after return from function |
> No, that's right, as the retf 0x0c pops the six pushes of the arguments |
| Rugxulo Usono, 05.07.2026, 07:10 @ bencollver |
Watcom 1.9 stack corruption after return from function |
Don't forget that common optimizations like -ox are the same as -obmiler -s (and turns off stack checking). Plus, being large model (and not flat), the stack is much smaller (4 kb?). |
| jadoxa Queensland, Australia, 05.07.2026, 08:21 @ bencollver |
Watcom 1.9 stack corruption after return from function |
Have you seen https://github.com/noyesno/awka/ ? |
| bencollver 05.07.2026, 15:24 @ jadoxa |
Watcom 1.9 stack corruption after return from function |
> Have you seen https://github.com/noyesno/awka/ ? |
Thread view