Mail Archives: djgpp-workers/2023/09/06/10:49:30
On 9/6/23 03:36, Rugxulo (rugxulo AT gmail DOT com) [via djgpp-workers AT delorie DOT com] wrote:
> It's been a few years since I tried gm2. I didn't write any heavy code
> in it, just played around a bit.
>
> Normally "SYSTEM" is a pseudo module only used for non-portable code,
> but I don't know how gm2 is supporting it here.
>
> In recent years I did dabble in Modula-2 but only for simple homegrown
> text utilities, nothing brilliant.
>
> (I also keep playing around with Pascal and Oberon in FreeDOS, all of
> which I've been toying with for a few years. Lately it's mostly been
> Pascal although I also ported some very trivial stuff to C and
> FreeBASIC.)
>
>> If You know language (Modula 2) and have access to ArchLinux: You could take files from
>> https://aur.archlinux.org/packages/djgpp-gcc (https://aur.archlinux.org/djgpp-gcc.git) and do
>> following additional changes:
> I did buy a StarLabs Linux laptop (Ubuntu LTS) last year but haven't
> used it much. I never installed GCC (or any compiler) on it. GCC 13 is
> really new anyways (but yes, Modula-2 directly interests me). Cygwin
> is still apparently using GCC 11.
I thought that I could try compile same Modula 2 example under Arch Linux, but I see that Modula 2
support is not yet configured:
[andris AT ap ~]$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-pc-linux-gnu/13.2.1/lto-wrapper
Kohde: x86_64-pc-linux-gnu
Configured with: /build/gcc/src/gcc/configure
--enable-languages=ada,c,c++,d,fortran,go,lto,objc,obj-c++ --enable-bootstrap --prefix=/usr
--libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-b
ugurl=https://bugs.archlinux.org/ --with-build-config=bootstrap-lto --with-linker-hash-style=gnu
--with-system-zlib --enable-__cxa_atexit --enable-cet=auto --enable-checking=release
--enable-clocale=gnu --enable-default-pie --enable-def
ault-ssp --enable-gnu-indirect-function --enable-gnu-unique-object --enable-libstdcxx-backtrace
--enable-link-serialization=1 --enable-linker-build-id --enable-lto --enable-multilib
--enable-plugin --enable-shared --enable-threads=posix
--disable-libssp --disable-libstdcxx-pch --disable-werror
Säiemalli: posix
Supported LTO compression algorithms: zlib zstd
gcc-versio 13.2.1 20230801 (GCC)
I'm not willing to do full bootstrap of GCC-13 for that purpose
>> It is supposed to work in listed ones. I have not tried FreeDOS 1.3 myself, but I had bad
>> experience with LFN support in FreeDOS 1.2. So You are welcome to try.
The problem was that unzipping large ZIP archive was extremely slow with LFN enabled and it failed
at end or there were files missing (I do not remember exactly any more)
Testing of non-LFN install of gcc-13.2 and reporting results would be nice
Andris
- Raw text -