Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

trip report: Tiny C Compiler 0.9.27 (Miscellaneous)

posted by bencollver Homepage, 11.02.2026, 02:06

> Do you mean -3s doesn't work? Default is something like -3 (register
> calling convention). I just assume you knew -3s also existed and tried
> that.

That's right, i am using -3s and it doesn't work for floating point functions when i import them from mt7s19.dll. With Watcom's -3s stack calling convention, a floating point result is returned in AX:DX.

Ironically, with Watcom's -3 register calling convention, a floating point result is returned in ST0 as TCC expects, but then the function arguments don't match up.

I'll probably write a short script to generate wrapper functions and keep my fingers crossed that it works as expected.

 

Complete thread:

Back to the forum
Board view  Mix view
23250 Postings in 2191 Threads, 405 registered users (1 online)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum