How up to date is the Watcom compiler? Can it do C99 or is it too old for that? Do you know if there's a C compiler that can do up to C11 and can target DOS?
@@anon_y_mousse I believe the answer is mostly C99 but as with most C compilers for DOS they tend to also add custom extensions, in addition to the DOS stuff which usually lies outside C99 or indeed C11. I didn't see any C11 mentions so I don't expect C11 specifics to be supported. I don't see anything in C11 which would be specifically useful for a DOS C program, what C11 features do you use?
@@SirWolf404 Not much, and it can mostly be replaced with older code, things like threads and atomics for which I just used pthreads before. Of course, _Generic would be harder to replace and it would require some more configuration programs. I suppose if push comes to shove I could always just write my own and target C99 at a source level.
I actually use a few DOS programs for real work, too. I use modern spreadsheets like Google Sheets, but if it's just for me and it's pure numbers, I'll do it in AsEasyAs on DOS. (It's my favorite spreadsheet.)
Sure you could! I think the easiest way to do that is to move the "tree rendering" code to a function (draw_tree) and then loop to that from the main() function as frequently as you'd like.
@@freedosproject The text graphics library of ow seems to be pretty neat indeed! I like how easy it's to just make color text in arbitrary places. Does it require an ANSI driver or does it work regardless of it?
Sure thing! I just posted the code on my GitHub. Here's a link that also includes the EXE programs. This has both the Christmas Tree and Fireplace programs: github.com/freedosproject/christmas2024/releases/tag/v2024
DOSCEMBER!!!!
How up to date is the Watcom compiler? Can it do C99 or is it too old for that? Do you know if there's a C compiler that can do up to C11 and can target DOS?
@@anon_y_mousse I believe the answer is mostly C99 but as with most C compilers for DOS they tend to also add custom extensions, in addition to the DOS stuff which usually lies outside C99 or indeed C11. I didn't see any C11 mentions so I don't expect C11 specifics to be supported. I don't see anything in C11 which would be specifically useful for a DOS C program, what C11 features do you use?
@@SirWolf404 Not much, and it can mostly be replaced with older code, things like threads and atomics for which I just used pthreads before. Of course, _Generic would be harder to replace and it would require some more configuration programs. I suppose if push comes to shove I could always just write my own and target C99 at a source level.
Merry Christmas. Thanks for FDOS
Thanks for watching!
Merry Christmas! I really enjoy these code videos, they are so relaxing to watch. :D
Thank you, I'm glad you enjoy them!
Merry DOSmas!!!
Nice! 👍
Great video. Well explained. You’re masterful
Thank you!
Merry X-DOS
메리 크리스마스!
Merry Christmas!
Both programs run great on the original Compaq Portable. Merry Christmas!
Inspirujące
That was fantastic programming session.
Thanks Jim!
Thanks, glad you liked it! More coming in 2025 too.
I love you lots, Grandpa. Merry Christmas!
Merry Christmas man!!!
지금 이 시대에도 dos를 잘 사용하시는군요
멋집니다 !!!
I actually use a few DOS programs for real work, too. I use modern spreadsheets like Google Sheets, but if it's just for me and it's pure numbers, I'll do it in AsEasyAs on DOS. (It's my favorite spreadsheet.)
Merry XMAS!
Would be possible to animate with a loop to clear the screen and re render it , every half a second ?
Sure you could! I think the easiest way to do that is to move the "tree rendering" code to a function (draw_tree) and then loop to that from the main() function as frequently as you'd like.
that's a good one
Thanks! And I like that it's so simple!
@@freedosproject The text graphics library of ow seems to be pretty neat indeed! I like how easy it's to just make color text in arbitrary places. Does it require an ANSI driver or does it work regardless of it?
Could you post a link to an executable?
Sure thing! I just posted the code on my GitHub. Here's a link that also includes the EXE programs. This has both the Christmas Tree and Fireplace programs: github.com/freedosproject/christmas2024/releases/tag/v2024
@@freedosproject This is great! Maybe I will show it to you running later.
I was going to ask why not read from /dev/urandom then I was like, oh yeah, dos.
:-)
I have a TekRam P233 MMX motherboard, and I am hoping v1.4 fixes the format a: or b: /u bug.
I have to look that up -- I'm not familiar with the TekRam motherboard.