Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion C vs C++, AVR-GCC, Generic Byte Ring Buffer

Received: by 10.224.180.205 with SMTP id bv13mr5322706qab.8.1343501542774;
        Sat, 28 Jul 2012 11:52:22 -0700 (PDT)
X-BeenThere: lufa-support@googlegroups.com
Received: by 10.224.186.193 with SMTP id ct1ls6814343qab.9.gmail; Sat, 28 Jul
 2012 11:52:21 -0700 (PDT)
Received: by 10.224.182.77 with SMTP id cb13mr5317576qab.5.1343501541299;
        Sat, 28 Jul 2012 11:52:21 -0700 (PDT)
Received: by 10.224.18.72 with SMTP id v8msqaa;
        Sat, 28 Jul 2012 11:47:26 -0700 (PDT)
Received: by 10.52.94.147 with SMTP id dc19mr679478vdb.17.1343501246295;
        Sat, 28 Jul 2012 11:47:26 -0700 (PDT)
Date: Sat, 28 Jul 2012 11:47:25 -0700 (PDT)
From: Hans Schou <hans.sc...@gmail.com>
To: lufa-support@googlegroups.com
Message-Id: <a34ae3a5-0c57-495b-87c8-4fb9bf1f969d@googlegroups.com>
Subject: C vs C++, AVR-GCC, Generic Byte Ring Buffer
MIME-Version: 1.0
Content-Type: multipart/mixed; 
	boundary="----=_Part_456_17517144.1343501245811"

------=_Part_456_17517144.1343501245811
Content-Type: multipart/alternative; 
	boundary="----=_Part_457_4064531.1343501245811"

------=_Part_457_4064531.1343501245811
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit

Hi

I'm starting to learn how to handle C++ classes in AVR-GCC and here 
the LUFA/Drivers/Misc/RingBuffer.h might actually be a good example. This 
is not a LUFA question but I hope that is OK.

Why is the RingBuffer not a C++ class?

How much more code and RAM will a class take up and how much execution time 
should one expect a class will take compared to the lightweight C model?

/hans

------=_Part_457_4064531.1343501245811
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: 7bit

Hi<div><br></div><div>I'm starting to learn how to handle C++ classes in AVR-GCC and here the&nbsp;LUFA/Drivers/Misc/RingBuffer.h might actually be a good example. This is not a LUFA question but I hope that is OK.</div><div><br></div><div>Why is the RingBuffer not a C++ class?</div><div><br></div><div>How much more code and RAM will a class take up and how much execution time should one expect a class will take compared to the lightweight C model?</div><div><br></div><div>/hans</div>
------=_Part_457_4064531.1343501245811--

------=_Part_456_17517144.1343501245811--