Tuesday, November 24, 2020

Digest for comp.lang.c++@googlegroups.com - 6 updates in 2 topics

olcott <NoOne@NoWhere.com>: Nov 24 05:05PM -0600

Every C programmer that can pay attention (Some respondents seem to have
attention deficit disorder) will see that the following code very
obviously specifies infinite recursion:
 
 
int DebugTrace(u32 P, u32 I)
{
return ((int(*)(int))P)(I);
}
 
 
void H_Hat(u32 P)
{
u32 Aborted = DebugTrace(P, P);
if (Aborted)
HALT
else
HERE: goto HERE;
}
 
 
int main()
{
u32 P = (u32)H_Hat;
DebugTrace(P, P);
HALT;
}
 
--
Copyright 2020 Pete Olcott
 
"Great spirits have always encountered violent opposition from mediocre
minds." Einstein
legalize+jeeves@mail.xmission.com (Richard): Nov 24 05:17PM

[Please do not mail me a copy of your followup]
 
Melzzzzz <Melzzzzz@zzzzz.com> spake the secret code
 
>Dunno, I started to learn C++ in 1993, gcc 2.95.2 was buggy as hell,
>and that was after 1998. ;)
>In 1993, nah C++ compilers were...
 
Widespread adoption of gcc came much later. We (and I assume most
others) were using commercial compilers, not gcc.
--
"The Direct3D Graphics Pipeline" free book <http://tinyurl.com/d3d-pipeline>
The Terminals Wiki <http://terminals-wiki.org>
The Computer Graphics Museum <http://computergraphicsmuseum.org>
Legalize Adulthood! (my blog) <http://legalizeadulthood.wordpress.com>
Melzzzzz <Melzzzzz@zzzzz.com>: Nov 24 05:39PM

>>In 1993, nah C++ compilers were...
 
> Widespread adoption of gcc came much later. We (and I assume most
> others) were using commercial compilers, not gcc.
Which were worse then gcc..
 
--
current job title: senior software engineer
skills: c++,c,rust,go,nim,haskell...
 
press any key to continue or any other to quit...
U ničemu ja ne uživam kao u svom statusu INVALIDA -- Zli Zec
Svi smo svedoci - oko 3 godine intenzivne propagande je dovoljno da jedan narod poludi -- Zli Zec
Na divljem zapadu i nije bilo tako puno nasilja, upravo zato jer su svi
bili naoruzani. -- Mladen Gogala
"daniel...@gmail.com" <danielaparker@gmail.com>: Nov 24 10:39AM -0800

On Tuesday, November 24, 2020 at 12:17:56 PM UTC-5, Richard wrote:
 
> Widespread adoption of gcc came much later. We (and I assume most
> others) were using commercial compilers, not gcc.
> --
Yes, and on UNIX, C compilers were free, but commercial C++ compilers were
expensive. That was a factor in its adoption.
 
On Windows, Visual C++ was usable by 1992, and became quite popular.
 
Daniel
scott@slp53.sl.home (Scott Lurndal): Nov 24 07:00PM


>> Widespread adoption of gcc came much later. We (and I assume most
>> others) were using commercial compilers, not gcc.
>Which were worse then gcc..
 
Upon what basis do you make that claim? Did you use Diab Data's C++
compiler for the 88100? Did you use any of USL's SGS compilers? How
about Sun compilers? Or SGI compilers? How about greenhills?
David Brown <david.brown@hesbynett.no>: Nov 24 10:38PM +0100

>> --
> Yes, and on UNIX, C compilers were free, but commercial C++ compilers were
> expensive. That was a factor in its adoption.
 
This was also very common in the embedded world. Typically C compilers
came with a limited free version (with the limit normally being the
total size of the binary file, but sometimes also limited features or
optimisation). For various prices you could get increased limits, and
then there would be a very expensive license for unlimited size, that
also enabled C++.
You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page.
To unsubscribe from this group and stop receiving emails from it send an email to comp.lang.c+++unsubscribe@googlegroups.com.

No comments: