![]() |
Forum Index : Microcontroller and PC projects : MMBASIC compiler - opnions wanted
![]() ![]() |
|||||
Author | Message | ||||
lizby Guru ![]() Joined: 17/05/2016 Location: United StatesPosts: 3348 |
In December I found it trivially easy to compile mmbasic for DOS to add Peter Mather's longstring functions (for which he provided the source)--but that was on a Win7 laptop. I haven't tried it on a Win10 machine. I don't know much of anything about what kind of differences would make this work for win7 but not win10, but it surprises me that it would be difficult. PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed |
||||
lizby Guru ![]() Joined: 17/05/2016 Location: United StatesPosts: 3348 |
I just downloaded the recommended openWatcom C compiler and ran the compilation for DOS for mmbasic source downloaded on April 2 on my 64-bit Win10 laptop. The BuildAll.bat file ran to completion in 16 seconds, and the mmbasic.exe executable works, at least as far as PRINT "Hello, World" goes. But perhaps the problem you have with it as far as your project goes is that openWatcom C is not your preferred tool--a 32-bit compiler that is no longer in active development (as far as I can tell--I think the version I just installed is from 2014). (I didn't want the impression to be left that MMBasic DOS could not be compiled on Win10 (which, of course, is not what you said)). PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed |
||||
tomxp411 Newbie ![]() Joined: 04/04/2019 Location: United StatesPosts: 24 |
Correct. My target is the Windows 10 SDK, and the MMBASIC code isn't suitable for the Windows 10 SDK in its current state. That's not a dig on Geoff's work. He's done a great job, but it would require a lot of time to port his code forward to C++ and the Windows 10 SDK. And setting all that aside, I'd really like to make this open source. That's simply not an option with a work derived from Geoff's code. |
||||
tomxp411 Newbie ![]() Joined: 04/04/2019 Location: United StatesPosts: 24 |
In December I found it trivially easy to compile mmbasic for DOS to add Peter Mather's longstring functions (for which he provided the source)--but that was on a Win7 laptop. I haven't tried it on a Win10 machine. I don't know much of anything about what kind of differences would make this work for win7 but not win10, but it surprises me that it would be difficult. The Windows SDK has changed from the last one that was shipped for Windows 7. Among other things, certain functions are deprecated for security reasons. sprintf, for example, is obsolete and dangerous to use. Instead, string handling should be done with the STL string class. And there's still the biggest issue: creating a derivative work based on Geoff's code means that I can't open source or sell it. |
||||
![]() ![]() |
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |