🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #208

Re: Intermediate addr outside object: legal?

#208
From: Shankar Unni
Date: Thu, 09 Apr 1992 21:28
23 lines
1702 bytes
In comp.std.c, barmar@think.com (Barry Margolin) writes:

> In article <2160002@aspen.IAG.HP.COM> shankar@aspen.IAG.HP.COM (Shankar Unni) writes:
> >This, of course, does not address the question of what is "the right
> >thing to do" when the compiler sees this expression (the user-
> >friendliness question).  Is it reasonable for the program to get a
> >SIGSEGV on this?  I.e. is this some sort of commonly used (albeit
> >questionable) idiom in some context that I'm not aware of?

> It depends on what you mean by "user-friendliness".  Which is more
> friendly: warning the programmer that their program may not port easily, or
> doing what the programmer probably expects?

Well, I might as well come out and say it: this case came up when
someone trying to optimize TeX 3.14 ran across it. Apparently Web2C
(which translates the original TeX web code into C) puts out code like
this, and from the message I got, it did so all over the place. Which is
why I was asking : is this a peculiarity of Web2C, or do other programs
also do this sort of junk?
-----
Shankar Unni                                 Internet: shankar@iag.hp.com
HP International Contract Programming          HPDESK: Shankar UNNI / HP4700
Phone : +1-408-447-4007                          UUCP: ...!hplabs!hpda!shankar
Technical Details
Message-ID: <2160003@aspen.IAG.HP.COM>
Path: arc1-ca.pugleaf.net!sparky!uunet!think.com!sdd.hp.com!hpscdc!hplextra!hpcc05!aspen!shankar
References: <2160001@aspen.IAG.HP.COM>

Show Full Headers
Complete Article Headers
From: shankar@aspen.IAG.HP.COM (Shankar Unni)
Date: Thu, 9 Apr 1992 21:28:21 GMT
Subject: Re: Intermediate addr outside object: legal?
Message-ID: <2160003@aspen.IAG.HP.COM>
Organization: HP International Contract Programming
Path: arc1-ca.pugleaf.net!sparky!uunet!think.com!sdd.hp.com!hpscdc!hplextra!hpcc05!aspen!shankar
Newsgroups: comp.std.c
References: <2160001@aspen.IAG.HP.COM>
Lines: 23