delorie.com/archives/browse.cgi | search |
X-Authentication-Warning: | delorie.com: mail set sender to djgpp-bounces using -f |
X-Received: | by 10.50.114.66 with SMTP id je2mr6252959igb.5.1383601182328; |
Mon, 04 Nov 2013 13:39:42 -0800 (PST) | |
X-Received: | by 10.182.204.42 with SMTP id kv10mr35664obc.33.1383601182281; |
Mon, 04 Nov 2013 13:39:42 -0800 (PST) | |
Newsgroups: | comp.os.msdos.djgpp |
Date: | Mon, 4 Nov 2013 13:39:42 -0800 (PST) |
In-Reply-To: | <10306cb9-ce95-40d0-8cb4-f1c10b6b7f5c@googlegroups.com> |
Complaints-To: | groups-abuse AT google DOT com |
Injection-Info: | glegroupsg2000goo.googlegroups.com; posting-host=65.13.115.246; |
posting-account=p5rsXQoAAAB8KPnVlgg9E_vlm2dvVhfO | |
NNTP-Posting-Host: | 65.13.115.246 |
References: | <f753e67c-d661-4f55-802c-f52e4dabca8b AT googlegroups DOT com> |
<6a5bd97a-a320-4b63-b323-ce16243b7d52 AT googlegroups DOT com> <bcd3711d-e2c6-420a-b6c9-bb5973e4870d AT googlegroups DOT com> | |
<op DOT w42tnlhz0e5s1z AT localhost> <10306cb9-ce95-40d0-8cb4-f1c10b6b7f5c AT googlegroups DOT com> | |
User-Agent: | G2/1.0 |
MIME-Version: | 1.0 |
Message-ID: | <686b84f9-014c-4bfc-ac3f-0e2907f0539d@googlegroups.com> |
Subject: | Re: Making a standalone EXE that will work without DJGPP |
From: | rugxulo AT gmail DOT com |
Injection-Date: | Mon, 04 Nov 2013 21:39:42 +0000 |
Bytes: | 3277 |
Lines: | 60 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
Errors-To: | nobody AT delorie DOT com |
X-Mailing-List: | djgpp AT delorie DOT com |
X-Unsubscribes-To: | listserv AT delorie DOT com |
Hi, On Friday, November 1, 2013 7:45:53 PM UTC-5, Segadude wrote: > > > C:\lua522\exe2coff lua522.exe > > C:\lua522\copy/b cwsdstub.exe + lua522 lua522.exe > > I tried these commands and when I try to run the resulting exe > I get "Program too big to fit into memory". I'm using a > Pentium III system with 256MB of RAM so I don't think this is > the case. You must've done something incorrectly as it does indeed work for me. However, without seeing your DJGPP setup nor knowing what compiler switches you used nor what checksums the .EXEs have, I can't even guess. Anyways, here's a quick prepackaged build of such a Lua .EXE for you, with original (.tar.gz) sources and a very kludgy makefile: https://sites.google.com/site/rugxulo/lua-cws.zip?attredirects=0&d=1 For clarify, since download links always disappear, I'll post the horrible makefile here. Hey, at least it uses one new feature of Juan's recent Make 4.0 port (at least compared to 3.81), which is good since tabs are anathema to email and newsgroups! :-) # GNUmakefile .RECIPEPREFIX := ! # needs 3.82 or newer, else just use hard tabs .PHONY: all .SILENT: lua-cws.exe lua.exe LUAVER ?= 5.2.2 LUATGZ ?= lua-$(LUAVER).tar.gz CWSDSTUB ?= /dev/env/DJDIR/bin/cwsdstub.exe WIPDIR ?= /tmp CFLAGS ?= -s -O2 -mtune=generic all: lua-cws.exe !$< -e "print(25^2,'should say 625')" lua.exe: $(LUATGZ) !djtar -x $< >NUL !cd lua-$(LUAVER)/src !ren luac.c *.c~ !$(CC) $(CFLAGS) -ansi -pedantic -DLUA_ANSI -x c *.c -o $@ lua-cws.exe: lua.exe $(CWSDSTUB) !exe2coff $< !update $(CWSDSTUB) cwsdstub.exe >NUL !copy /b cwsdstub.exe + lua lua-cws.exe >NUL !-upx -qqq --best --lzma --all-filters lua*.exe !move $< ..\.. >NUL !move $@ ..\.. >NUL !cd ..\.. $(LUATGZ): # tested under DOSEMU (FreeDOS) w/ LFNs !unix wget http://www.lua.org/ftp/$@ !unix mv $@ ~/.dosemu/drive_c$(WIPDIR)
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |