public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* Old story (30 years ago)
@ 2023-01-09 10:21 Cut Hour
  2023-01-17 13:55 ` Nick Clifton
  0 siblings, 1 reply; 4+ messages in thread
From: Cut Hour @ 2023-01-09 10:21 UTC (permalink / raw)
  To: binutils

Hello.

As an extension to ELF format that does not lose generality, it is
conceivable that symbols can perform four arithmetic operations with
other symbols and constants during resolution.  Symbol resolution
information may be stored in Reverse Polish.  How much does this
reduce recompilation of source files?

The original motivation was the problem of recompilation caused by
the advent of C++.  What's new in OOP?  It's inheritance.
Encapsulation without inheritance can be done in plain C without
recompilation problems.  So what is inheritance?  It's the offset of
member variables and member functions. It is not good to hard-code
this at compile time.  Should be deferred until link time.

A long time ago, I tried to create a language in which every class
had a uniform method table and all methods were called via a single
pointer, and to see how practical it would be.  I thought that it
would be possible to create a suitable translator to C, but I was
frustrated because of such a problem.  The conclusion is that "the
current compiler infrastructure (such as binutils) assumes ONLY
STRUCTURED PROGRAMMING".

I don't know very well about Clang or LLVM.  So this might be
already out of date.  Any need for this extended ELF do you think?


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-01-24 13:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-09 10:21 Old story (30 years ago) Cut Hour
2023-01-17 13:55 ` Nick Clifton
2023-01-17 15:28   ` Cut Hour
2023-01-24 13:27     ` Nick Clifton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).