This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Heapless C/C++


On Sat, Oct 8, 2011 at 10:29 PM, Jonathan Wakely <jwakely.gcc@gmail.com> wrote:
> On 8 October 2011 17:37, Charles Wilson wrote:
>>
>> Not hopeless; but you have to treat C++ simply as a slightly more
>> expressive version of C, follow the same rules previously outlined just
>> as if you WERE using C, and avoid the STL...
>
> If you're going to spout FUD about C++ at least use the right
> terminology please.
>
> For a start "the STL" is a library from the 90s and what you probably
> mean is "the C++ standard library" and secondly I assume you mean
> avoid the standard containers such as std::vector, which allocate
> memory. There's no reason to avoid using e.g. std::sort or
> std::lower_bound on an array.
>

One thing I understand is that this cannot be called Heapless C++. It
has to be a new language. It cannot be made backward-compatible.
Far too many things will break. Thanks Charles for at least not calling
it hopeless. :)

I have firm belief that it can be done though it is a Herculean task. I will
try to borrow as much syntax/features as much possible from C/C++.

-- 
Best regards,
Shiv Shankar Dayal


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]