Hi Jim, > On May 28, 2024, at 3:47 PM, Jim Hall via Freedos-devel > <freedos-devel@lists.sourceforge.net> wrote: > > This didn't get any discussion a month ago. Since it didn't appear in > T2405, I wanted to raise it again for T2406. Can we add this to T2406? > Adding a DJGPP.ENV file is all you need to compile programs with IA-16 > GCC without installing the full DJGPP environment. > > To make it easier to add to the distribution, I've created a 427-byte > zip file that contains DJGPP.ENV and SETENV.BAT; if you unzip this at > the root dir, then both get installed to \devel\i16gcc. I've copied > the zip file to the FreeDOS Files Archive at Ibiblio, here: > > https://ibiblio.org/pub/micro/pc-stuff/freedos/files/devel/c/gcc-ia16/ > I16ENV.ZIP > > The I16ENV.TXT file is just a brief Readme about it. >
Wouldn’t it make more sense to just add those files to the https://gitlab.com/FreeDOS/devel/i16gcc package? But, I don’t use it. So, maybe that would be an issue or confusing to users. > >> On Wed, Apr 10, 2024 at 10:52 AM Jim Hall <jh...@freedos.org> wrote: >> >> Based on my other email about getting IA-16 GCC to work on T2404 >> without installing DJGPP, I propose adding a new package in T2405 >> called I16ENV that just has two files in it: >> >> /devel/i16gnu/djgpp.env >> /devel/i16gnu/setenv.bat >> >> The DJGPP.ENV file contains just: >> >> DJDIR= >> >> And the SETENV.BAT file sets the PATH and points the DJGPP environment >> variable to the DJGPP.ENV file, like this: >> >> @ECHO OFF >> PATH %PATH%;C:\DEVEL\I16GNU\BIN >> SET DJGPP=C:\DEVEL\I16GNU\DJGPP.ENV >> >> >> Since it gets installed in the IA-16 GCC directory, it shouldn't get >> confused with the DJGPP stuff. If the DJGPP env file is called >> DJGPP.ENV, it will make more sense when people find references to >> "DJGPP.ENV" in other documentation. And because the package will be >> named similarly to the other IA-16 GCC packages, users will be more >> likely to install it when they install IA-16 GCC. But because we >> aren't updating any original IA-16 GCC packages, it keeps things clean >> at the expense of a little extra "overhead" for the package. But if >> you're installing a C compiler, you likely can spare the tiny extra >> space. >> >> This will be a good way for others to start testing compiling programs >> using IA-16 GCC in a working default configuration on a fresh install, >> starting with the next test release. >> >> This works on my T2404 installation. Here is a copy/paste of my >> FreeDOS session after a fresh reboot (using unmodified FDAUTO.BAT): >> >> C:\DEVEL>dir /b >> I16GNU >> WATCOMC >> >> C:\DEVEL>cd i16gnu >> >> C:\DEVEL\I16GNU>dir /b >> BIN >> IA16-ELF >> LIB >> LIBEXEC >> SHARE >> DJGPP.ENV >> SETENV.BAT >> >> C:\DEVEL\I16GNU>type setenv.bat >> @ECHO OFF >> PATH %PATH%;C:\DEVEL\I16GNU\BIN >> SET DJGPP=C:\DEVEL\I16GNU\DJGPP.ENV >> >> C:\DEVEL\I16GNU>type DJGPP.ENV >> DJDIR= >> >> C:\DEVEL\I16GNU>setenv.bat >> >> .. now I'll switch to the D: drive to compile a program .. >> >> D:\SRC>dir /b hello.* >> HELLO.C >> >> D:\SRC>type hello.c >> #include <stdio.h> >> int main() >> { >> puts("Hello world"); >> return 0; >> } >> >> D:\SRC>i16gcc -Wall -o hello.exe hello.c >> >> D:\SRC>dir /b hello.* >> HELLO.C >> HELLO.EXE >> >> D:\SRC>hello.exe >> Hello world > > > _______________________________________________ > Freedos-devel mailing list > Freedos-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/freedos-devel
_______________________________________________ Freedos-devel mailing list Freedos-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-devel