Products > Programming
GCC 13.1 is out
SiliconWizard:
So I tried building it.
I was kind of "looking forward" (well, that's probably too strong a word ;D ) to testing the Modula-2 front-end, but it fails to build on my platform.
The culprit is there, in gcc/m2/mc-boot/GDynamicStrings.cc :
--- Code: ---static void writeAddress (void * a)
{
writeLongcard ((long unsigned int ) (a));
}
--- End code ---
Nice one, isn't it? ;D
brucehoult:
I saw the Modula 2 announcement. 40 years later....
Kind of interesting, but it's just a stepping stone on the way to Modula-3 on the one hand and Oberon on the other.
As for the error ... I guess assuming long is the same size as a pointer is almost as bad as assuming int is. uintptr_t, anyone?
Hmm ... IL32LLP64 or IP16L32 ? I don't think anyone has made an IP32L64 platform.
Win64 seems more likely than PDP-11 :-)
SiliconWizard:
I'm just guessing this piece of code may have been pretty old, probably pre-C99, and was never refactored. It's unfortunate that it made it to GCC mainline, but oh well. I opened a ticket on bugzilla.
The Modula-2 front-end is GNU Modula-2 that got finally included as an official front-end. It has been a relatively active development for years.
Modula-3 is under "active" development as well, but given the very limited success it had, it probably will never make it to GCC. The fact gm2 was a GNU project probably helped a bit, here.
https://github.com/modula3/cm3
Many people may not know that Modula-2 has been used extensively in some areas, for instance in the russian aerospace industry. Current GLONASS satellites run on Modula-2 code, for instance. Not unlikely that there may be Modula-2 code in the Soyuz spacecrafts and rockets.
SiliconWizard:
I thought I would have logically had more luck building it for arm32. Indeed this one above doesn't pose a problem here, but I ran into another compile error, in gm2 libs this time.
Oh well. Maybe they rushed it a little bit.
eutectique:
--- Quote from: SiliconWizard on April 29, 2023, 02:59:37 am ---Many people may not know that Modula-2 has been used extensively in some areas, for instance in the russian aerospace industry. Current GLONASS satellites run on Modula-2 code, for instance. Not unlikely that there may be Modula-2 code in the Soyuz spacecrafts and rockets.
--- End quote ---
Modula-2 was popular at one of the Soviet nuclear facilities. It was running on "Electronica 60" (LSI-11 clone) controlling ion mass spectrometers. Software development was done on SM-1420, clone of PDP-11/45.
Navigation
[0] Message Index
[#] Next page
Go to full version