Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 18:53 03 Jul 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : MMBASIC compiler - opnions wanted

     Page 2 of 2    
Author Message
lizby
Guru

Joined: 17/05/2016
Location: United States
Posts: 3348
Posted: 12:51pm 20 Apr 2019
Copy link to clipboard 
Print this post

  tomxp411 said  I actually tried to compile MMBASIC on Windows 10, and there were a lot of issues, mostly the use of older APIs that aren't really supported on Windows 10 and Visual Studio 2019.

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 States
Posts: 3348
Posted: 02:07pm 20 Apr 2019
Copy link to clipboard 
Print this post

  lizby said  
  tomxp411 said  I actually tried to compile MMBASIC on Windows 10, and there were a lot of issues, mostly the use of older APIs that aren't really supported on Windows 10 and Visual Studio 2019.

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.

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)).
Edited by lizby 2019-04-22
PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
tomxp411
Newbie

Joined: 04/04/2019
Location: United States
Posts: 24
Posted: 05:02pm 22 Apr 2019
Copy link to clipboard 
Print this post

  Quote  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)).


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.




Edited by tomxp411 2019-04-24
 
tomxp411
Newbie

Joined: 04/04/2019
Location: United States
Posts: 24
Posted: 05:06pm 22 Apr 2019
Copy link to clipboard 
Print this post

  lizby said  
  tomxp411 said  I actually tried to compile MMBASIC on Windows 10, and there were a lot of issues, mostly the use of older APIs that aren't really supported on Windows 10 and Visual Studio 2019.

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.






Edited by tomxp411 2019-04-24
 
     Page 2 of 2    
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025