lwc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [Lightweight C++] News


From: Stelios Xanthakis
Subject: RE: [Lightweight C++] News
Date: Sat, 22 Jan 2005 21:09:46 +0200 (EET)



On Fri, 21 Jan 2005, Ron Pinkas wrote:

Could you kindly provide more info on the above? Pelle is a good friend of
mine, and is usually VERY responsive. :-)

- Statement in expression is when we say:

        x = ({ while (i<j) i += k[j++]; j; });

this is useful because otherwise our code generator
gets very complex. It should be easy to implement in a C compiler.

- Linkonce sections is:

        int GLOBAL_VARIABLE __attribute__ ((section (".gnu.linkonce.d")))

things that are placed in linkonce sections (code or data)
are collapsed by the linker. So definitions can appear in
many object files. Very useful as virtual tables, for one,
are placed in linkonce. This is basically a linker feature
but the compiler should be able to somehow pass the directive.

- typeof(). Easy to implement.

- constructor sections:

        void function() __attribute__((constructor))

executed before main().

And a couple of other which IIRC we can work around if not
present.

Generally, all these are documented in:
http://gcc.gnu.org/onlinedocs/gcc-3.4.3/gcc/index.html#toc_C-Extensions

I'll keep an eye on pelle's forums.


regards,

Stelios







reply via email to

[Prev in Thread] Current Thread [Next in Thread]