Sysop: | Amessyroom |
---|---|
Location: | Fayetteville, NC |
Users: | 26 |
Nodes: | 6 (0 / 6) |
Uptime: | 61:52:06 |
Calls: | 633 |
Calls today: | 1 |
Files: | 1,188 |
D/L today: |
32 files (20,076K bytes) |
Messages: | 181,453 |
On 23/08/2025 00:11, Keith Thompson wrote:...
David Brown <david.brown@hesbynett.no> writes:The C standard does not define how this linking or combing is done - it
On 21/08/2025 21:53, Keith Thompson wrote:[...]
If you declare and call a function "foo" that is written in fully
portable C code, but not part of the current translation unit being
compiled (perhaps it has been separately compiled or included in a
library), then it would be UB by the section 4 definition (since the C
standards don't say anything about what "foo" does, nor does your code). ...
only covers certain specific aspects of the linking that relate directly
to C. The behaviour of the function "foo" here is not defined in the C standards, and if the source code is not available when translating a different translation unit, the behaviour of "foo" is undefined.
I remember having an immensely frustrating discussion on this issue a
couple of decades ago.
On 2025-08-25 22:13, James Kuyper wrote:
...
I remember having an immensely frustrating discussion on this issue
a couple of decades ago.
The discussion was on comp.std.c, the Subject: was "clrsc and UB", and
my participation in the discussion started 2002-02-05.
[Yeah, it's not like this is a new topic. -John]
On Tue, 26 Aug 2025 13:41:14 -0400...
James Kuyper <jameskuyper@alumni.caltech.edu> wrote:
The discussion was on comp.std.c, the Subject: was "clrsc and UB", and
my participation in the discussion started 2002-02-05.
[Yeah, it's not like this is a new topic. -John]
Don't you mean "clrscr and UB" ?