Mail Archives: djgpp/2013/10/16/16:45:07
On Tuesday, October 15, 2013 6:38:17 PM UTC-4, rug DOT DOT DOT AT gmail DOT com wrote:
> Hi,
>
>
>
> On Monday, October 14, 2013 5:17:27 PM UTC-5, Segadude wrote:
>
> >
>
> > Today, I successfully compiled Lua 5.2.2 for MS-DOS using DJGPP.
>
>
>
> Any particular reason? LUA_ANSI? Did you know that Juan already
>
> did a port of that for us? See /beta/v2tk/ :
>
>
>
> http://na.mirror.garr.it/mirrors/djgpp/beta/v2tk/lua522b.zip
>
>
>
> > I want to make it a standalone EXE so I can distribute it.
>
>
>
> You mean bundle the DPMI server? Not needed if you're running
>
> under DOSEMU, DR-DOS 7.03, OS/2, Win9x, or WinNT (e.g. XP 32-bit).
>
> Only in raw DOS without CWSDPMI (or similar) already present will
>
> this be a minor problem.
>
>
>
> Though it doesn't hurt either way, 20 kb is pretty small.
>
>
>
> > I read
>
> > that pmode11b.zip is supposed to do it but I don't really understand
>
> > how to use it.
>
>
>
> AFAIK, latest is PMODE/DJ 1.3, see /current/v2misc/ or CWS' homepage:
>
>
>
> http://na.mirror.garr.it/mirrors/djgpp/current/v2misc/
>
>
>
> http://homer.rice.edu/~sandmann/
>
> http://homer.rice.edu/~sandmann/cwsdpmi/pmodedj.txt
>
>
>
> However, PMODE/DJ is darn old, and while I don't fully understand it,
>
> I don't trust it nearly as much as CWSDPMI r7 (circa 2010). I think
>
> that was back (pre-r5) before CWSDSTUB existed, so (IMHO) there's
>
> really no major need for preferring or using PMODE/DJ (that I know of).
>
>
>
> > Is there a way to make a standalone EXE that will run
>
> > by itself without DJGPP being installed? Any help would be greatly
>
> > appreciated.
>
>
>
> DJGPP doesn't have to be installed, only a small DPMI server since all
>
> v2 programs need DPMI. By default, the stub tries to call CWSDPMI.EXE
>
> if no other is enabled. If you want to make it not require an external
>
> DPMI host, you can "exe2coff blah.exe" and then "copy /b cwsdstub.exe
>
> + blah blah.exe" .
>
>
>
> > P.S. DJGPP is great, I love it. Keep up the great work!
>
>
>
> It still works, but there isn't a lot of active work being done
>
> on it. Quite honestly, most developers moved on to greener pastures
>
> (to put it mildly).
I compiled regular Lua 5.2.2 (right from Lua.org) for DOS because I was looking for a Lua port for MS-DOS but couldn't fine one. So I decided to compile it myself. I have a small lua script I want to be able to run on DOS. For my Lua compilation, I want a single EXE that will run in a pure DOS environment without the need for anything else to be installed. Could you elaborate a bit on how to use the cwsdstub? Thanks for all the help you have given me thus far.
- Raw text -