Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ouch! Watcom C int86/int86x() function ultimately adds 780 bytes to your MS-DOS executable! #28

Open
joncampbell123 opened this issue Oct 5, 2017 · 1 comment
Assignees

Comments

@joncampbell123
Copy link
Owner

I just noticed that merely using int86/int86x() functions adds 780 bytes, 768 of which is (3 x 256) bytes consisting of INT xxh; RET for each possible interrupt.

So the solution, at least for MS-DOS 16-bit builds, is to not use these functions!

@joncampbell123
Copy link
Owner Author

This is a moderately big deal to me when I am trying to reduce bloat in DOSLIB executables short of just writing it in asm or writing C without the runtime.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant